From c9288d9c4838d79033e5c263d0ede2e81a9c406e Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 28 Oct 2020 12:42:28 -0400 Subject: [PATCH] Use GET instead of POST for limit control. (#1727) - Creates cleaner browser history (no back button problems, etc.). --- themes/bootstrap3/templates/search/controls/limit.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/bootstrap3/templates/search/controls/limit.phtml b/themes/bootstrap3/templates/search/controls/limit.phtml index 7e4a01191a8..b8bc959f7e7 100644 --- a/themes/bootstrap3/templates/search/controls/limit.phtml +++ b/themes/bootstrap3/templates/search/controls/limit.phtml @@ -1,6 +1,7 @@ <?php $limitList = $this->params->getLimitList(); ?> <?php if (count($limitList) > 1): ?> - <form class="form-inline search-result-limit" action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="post"> + <form class="form-inline search-result-limit" action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="get"> + <?=$this->results->getUrlQuery()->asHiddenFields(['sort' => '/.*/']);?> <label for="limit"><?=$this->transEsc('Results per page')?></label> <select id="limit" name="limit" class="jumpMenu form-control"> <?php foreach ($limitList as $limitVal => $limitData): ?> -- GitLab