Skip to content
Snippets Groups Projects
Commit 6f2b712d authored by Todd Dembrey's avatar Todd Dembrey
Browse files

keep query active across pagination

parent 08008fec
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<nav role="navigation" aria-label="Pagination">
<ul class="pagination">
{% if paginator_page.has_previous %}
<li class="previous"><a href="?page={{ paginator_page.previous_page_number }}{% if search_query %}&amp;query={{ search_query|urlencode }}{% endif %}{% if extra_url_params %}&amp;{{ extra_url_params }}{% endif %}">previous</a></li>
<li class="previous"><a href="?page={{ paginator_page.previous_page_number }}{% for param, value in request.GET.items %}{% if param != "page" %}&{{param}}={{value|urlencode}}{% endif %}{% endfor %}">previous</a></li>
{% endif %}
<li class="cardinality">
......@@ -10,7 +10,7 @@
</li>
{% if paginator_page.has_next %}
<li class="next"><a href="?page={{ paginator_page.next_page_number }}{% if search_query %}&amp;query={{ search_query|urlencode }}{% endif %}{% if extra_url_params %}&amp;{{ extra_url_params }}{% endif %}">next</a></li>
<li class="next"><a href="?page={{ paginator_page.next_page_number }}{% for param, value in request.GET.items %}{% if param != "page" %}&{{param}}={{value|urlencode}}{% endif %}{% endfor %}">next</a></li>
{% endif %}
</ul>
</nav>{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment