Remove trailing slashes from URLs

This commit is contained in:
Alex Cabal 2020-05-02 21:03:22 -05:00
parent cd74a155f4
commit 986183a83f
17 changed files with 71 additions and 48 deletions

View file

@ -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))));
}
}