Fix broken tag URLs for tags with dashes in them

This commit is contained in:
Alex Cabal 2021-03-14 10:55:32 -05:00
parent 5d3e4e04ac
commit cca85f997b

View file

@ -49,6 +49,11 @@ try{
$tags = [];
}
// Replace dashes passed in from URLs like /tags/science-fiction
foreach($tags as $key => $tag){
$tags[$key] = str_replace('-', ' ', $tag);
}
// Are we looking at a collection?
if($collection !== null){
$ebooks = Library::GetEbooksByCollection($collection);