Ensure that a change in sort-by order resets the current page number to 1 #179

Merged
Oleg-Komarov merged 1 commits from HugeMenace/extensions-website:sort-by-page-number-reset into main 2024-06-11 11:27:58 +02:00
Showing only changes of commit 3f376ea939 - Show all commits

View File

@ -68,7 +68,7 @@
<ul class="dropdown-menu dropdown-menu-filter-sort dropdown-menu-right js-dropdown-menu" id="js-dropdown-menu-sort"> <ul class="dropdown-menu dropdown-menu-filter-sort dropdown-menu-right js-dropdown-menu" id="js-dropdown-menu-sort">
{% for option_sort_by, name in sort_by_options.items %} {% for option_sort_by, name in sort_by_options.items %}
<li> <li>
<a class="dropdown-item{% if option_sort_by == sort_by %} is-active{% endif %}" href="?{% query_transform sort_by=option_sort_by %}"> <a class="dropdown-item{% if option_sort_by == sort_by %} is-active{% endif %}" href="?{% query_transform sort_by=option_sort_by page=1 %}">
{{ name }} {{ name }}
</a> </a>
</li> </li>