diff options
| author | 2023-01-02 21:54:00 +0100 | |
|---|---|---|
| committer | 2023-01-02 21:54:00 +0100 | |
| commit | 92d1b0cda731b7c4ce244f4cd3f759056a2f1534 (patch) | |
| tree | 6e49255b450ccc5e9f55923a1bc236b3b127ef5c /app | |
| parent | ba7cb98bdfd0b2b1060f6fb0dbcb184b7e85847c (diff) | |
Keep view for search landing page (#4981)
Diffstat (limited to 'app')
| -rw-r--r-- | app/layout/header.phtml | 5 | ||||
| -rw-r--r-- | app/layout/nav_menu.phtml | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml index 75dacfe1d..b9d5c0a13 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -18,6 +18,11 @@ <input type="search" name="search" id="search" class="extend" value="<?= htmlspecialchars(htmlspecialchars_decode(FreshRSS_Context::$search, ENT_QUOTES), ENT_COMPAT, 'UTF-8') ?>" placeholder="<?= _t('gen.menu.search') ?>" /> + + <?php $param_a = Minz_Request::actionName(); ?> + <?php if (in_array($param_a, ['normal', 'global', 'reader'])) { ?> + <input type="hidden" name="a" value="<?= $param_a ?>" /> + <?php } ?> <?php $get = Minz_Request::param('get', ''); ?> <?php if ($get != '') { ?> diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index e8c4170c9..f719538fd 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -190,6 +190,11 @@ <input type="search" name="search" class="extend" value="<?php echo htmlspecialchars(htmlspecialchars_decode(FreshRSS_Context::$search, ENT_QUOTES), ENT_COMPAT, 'UTF-8'); ?>" placeholder="<?= _t('index.menu.search_short') ?>" /> + <?php $param_a = Minz_Request::actionName(); ?> + <?php if (in_array($param_a, ['normal', 'global', 'reader'])) { ?> + <input type="hidden" name="a" value="<?= $param_a ?>" /> + <?php } ?> + <?php $get = Minz_Request::param('get', ''); ?> <?php if($get != '') { ?> <input type="hidden" name="get" value="<?= $get ?>" /> |
