diff --git a/www/ebooks/index.php b/www/ebooks/index.php index d6d304e4..a6c2f499 100644 --- a/www/ebooks/index.php +++ b/www/ebooks/index.php @@ -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);