mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -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 = [];
|
$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?
|
// Are we looking at a collection?
|
||||||
if($collection !== null){
|
if($collection !== null){
|
||||||
$ebooks = Library::GetEbooksByCollection($collection);
|
$ebooks = Library::GetEbooksByCollection($collection);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue