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

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">
{% for option_sort_by, name in sort_by_options.items %}
<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 }}
</a>
</li>