mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Fix broken tag URLs for tags with dashes in them
This commit is contained in:
parent
5d3e4e04ac
commit
cca85f997b
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue