summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/views/search.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index 9ca299f6..0362602e 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -121,7 +121,9 @@ class SearchListView(ListView):
def get_context_data(self, **kwargs):
context = super(SearchListView, self).get_context_data(**kwargs)
- context['current_query'] = self.request.GET.urlencode()
+ query_params = self.request.GET.copy()
+ query_params.pop('page', None)
+ context['current_query'] = query_params.urlencode()
context['search_form'] = self.form
return context