Commit 5fa855f292470eb5197d10d6520eb36896c90dbd
1 parent
0de20def
Exists in
master
and in
39 other branches
Keeping order when removing filter
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/templates/search/search.html
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | <ul class="unstyled-list"> | 21 | <ul class="unstyled-list"> |
22 | <li class="selected" title="{% trans "Remove filter" %}"> | 22 | <li class="selected" title="{% trans "Remove filter" %}"> |
23 | <span class="glyphicon glyphicon-remove"></span> | 23 | <span class="glyphicon glyphicon-remove"></span> |
24 | - <a href="{% url 'haystack_search' %}?q={{ request.GET.q }}"> | 24 | + <a href="{% url 'haystack_search' %}?q={{ request.GET.q }}{% if request.GET.order %}&order={{ request.GET.order }}{% endif %}"> |
25 | <span class="glyphicon glyphicon-{{ filters.icon }}"></span> | 25 | <span class="glyphicon glyphicon-{{ filters.icon }}"></span> |
26 | {{ filters.name }} | 26 | {{ filters.name }} |
27 | </a> | 27 | </a> |