Skip to content

Commit

Permalink
Add {{ get_string }} to docket page navigation within filter bar
Browse files Browse the repository at this point in the history
The docket page navigation buttons within the filter bar loses any
parameters that are on the current page.  That means that it is possible
to loose sort order and other parameters.
  • Loading branch information
troglodite2 committed Apr 29, 2023
1 parent 490e7e1 commit c4a2117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cl/opinion_page/templates/includes/de_filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<div class="tight-input col-xs-6 hidden-sm col-sm-6 col-md-1 col-lg-2" >
<div class="pull-right" >
{% if docket_entries.has_previous %}
<a class="btn btn-default" href="?page={{ docket_entries.previous_page_number }}" rel="prev" >
<a class="btn btn-default" href="?{{ get_string }}page={{ docket_entries.previous_page_number }}" rel="prev" >
<i class="fa fa-caret-left" ></i><span class="hidden-md" >&nbsp;Prev.</span>
</a>
{% else %}
Expand All @@ -93,7 +93,7 @@
</a>
{% endif %}
{% if docket_entries.has_next %}
<a class="btn btn-default" href="?page={{ docket_entries.next_page_number }}" rel="next" >
<a class="btn btn-default" href="?{{ get_string }}page={{ docket_entries.next_page_number }}" rel="next" >
<span class="hidden-md" >Next&nbsp;</span><i class="fa fa-caret-right"></i>
</a>
{% else %}
Expand Down

0 comments on commit c4a2117

Please sign in to comment.