diff options
| author | 2018-09-15 13:06:29 +0200 | |
|---|---|---|
| committer | 2018-09-15 13:06:29 +0200 | |
| commit | af27b6d300723883f1110eee103eb892ddf1056d (patch) | |
| tree | 2bf68be80d624723dedc78262105546f0bc0088d /app/views | |
| parent | 60cc39db25de4f70c9a78930f5901d49b081c1f5 (diff) | |
Tags split improvement (#2023)
* Tags split improvement
Some feeds use a single category with comma-separated tags.
Better handling of tags containing a space
* Handle spaces in searches with +
Can now search in tags containing spaces
* Fix searches with spaces for title and author
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/index/normal/entry_bottom.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 6417da4cb..d22b32625 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -80,8 +80,8 @@ ?></a> <ul class="dropdown-menu"> <li class="dropdown-close"><a href="#close">❌</a></li><?php - foreach($tags as $tag) { - ?><li class="item"><a href="<?php echo _url('index', 'index', 'search', '#' . htmlspecialchars_decode($tag, ENT_QUOTES)); ?>"><?php echo $tag; ?></a></li><?php + foreach ($tags as $tag) { + ?><li class="item"><a href="<?php echo _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))); ?>"><?php echo $tag; ?></a></li><?php } ?> </ul> </div> |
