Skip to content
Snippets Groups Projects
Commit c9288d9c authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Use GET instead of POST for limit control. (#1727)

- Creates cleaner browser history (no back button problems, etc.).
parent e05d4568
Branches
Tags
No related merge requests found
<?php $limitList = $this->params->getLimitList(); ?> <?php $limitList = $this->params->getLimitList(); ?>
<?php if (count($limitList) > 1): ?> <?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> <label for="limit"><?=$this->transEsc('Results per page')?></label>
<select id="limit" name="limit" class="jumpMenu form-control"> <select id="limit" name="limit" class="jumpMenu form-control">
<?php foreach ($limitList as $limitVal => $limitData): ?> <?php foreach ($limitList as $limitVal => $limitData): ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment