diff options
| author | 2021-01-02 18:59:57 -0500 | |
|---|---|---|
| committer | 2021-01-03 00:59:57 +0100 | |
| commit | 31cb07ac1acf7bad8c1bf6bbef45a17f4e0edbf3 (patch) | |
| tree | de55a9b14be7aa83c6064ed6e9417bb3f3e512f4 /app | |
| parent | 9c6682e7edf8cbad828088cbeeef66c7ecefdd9a (diff) | |
Fix author search link (#3315)
Before, when clicking on the author link, the search was done on the
main stream in the normal view. It's fine until the feed is not visible
in the main stream.
Now, the current context is used along with the search.
See #3314
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/index/normal.phtml | 2 | ||||
| -rw-r--r-- | app/views/index/reader.phtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 88b194a65..3de94f321 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -88,7 +88,7 @@ $today = @strtotime('today'); echo $first ? _t('gen.short.by_author') . ' ' : '· '; $first = false; ?> - <em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em> + <em><a href="<?= Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))])) ?>"><?= $author ?></a></em> <?php endforeach; ?> </div><?php endif; ?> </div> diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index 32e2bee04..f2f76f8b6 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -57,7 +57,7 @@ $content_width = FreshRSS_Context::$user_conf->content_width; echo $first ? _t('gen.short.by_author') . ' ' : '· '; $first = false; ?> -<em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em> +<em><a href="<?= Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))])) ?>"><?= $author ?></a></em> <?php endforeach; echo ' — '; |
