Revert "core&ui: fix pagination sort parameter (#1094)" (#1097)

This commit is contained in:
undefined authored and GitHub committed 2025-12-06 14:22:31 +00:00
1 parent 41a2f2228f
commit 17ec582804
4 files changed
+7 -10

No files matched your search

@@ -6,7 +6,7 @@
{% if not pdocs.length %}
{{ nothing.render('Sorry, there are no problems in the problem set.') }}
{% else %}
{{ paginator.render(page, ppcount, position='top', add_qs=qs) }}
{{ paginator.render(page, ppcount, position='top', add_qs=('q=' + qs if qs else '')) }}
<table class="data-table hide-problem-tag">
<colgroup>
<col class="col--checkbox display-mode-hide">
@@ -63,6 +63,6 @@
{%- endfor -%}
</tbody>
</table>
{{ paginator.render(page, ppcount, add_qs=qs) }}
{{ paginator.render(page, ppcount, add_qs=('q=' + qs if qs else '')) }}
{% endif %}
</div>
@@ -1,6 +1,6 @@
<div data-fragment-id="problem_lucky">
<p>
<a href="{{ url('problem_random', query={q:q}) if q else url('problem_random') }}" class="expanded button" target="_blank">
<a href="{{ url('problem_random', query={q:qs}) if qs else url('problem_random') }}" class="expanded button" target="_blank">
<span class="icon icon-feeling-lucky"></span> {{ _('Lucky') }}
</a>
</p>