mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Remove trailing slashes from URLs
This commit is contained in:
parent
cd74a155f4
commit
986183a83f
17 changed files with 71 additions and 48 deletions
|
@ -5,6 +5,6 @@ class Collection{
|
|||
|
||||
public function __construct(string $name){
|
||||
$this->Name = $name;
|
||||
$this->Url = '/collections/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText(Formatter::RemoveDiacritics($this->Name)))) . '/';
|
||||
$this->Url = '/collections/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText(Formatter::RemoveDiacritics($this->Name))));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue