summaryrefslogtreecommitdiffstats
path: root/templates/packages/search_paginator.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-16 22:38:29 +0100
committerDan McGee <dan@archlinux.org>2013-02-16 22:39:23 +0100
commit746023d529489b68f1a2494ff7572734b3b368ce (patch)
treed6c1f09ad778db6c8117dc5b642d9683671c963b /templates/packages/search_paginator.html
parente3837b5a872b6203b7ae338bc8075b339e031627 (diff)
downloadarchweb-746023d529489b68f1a2494ff7572734b3b368ce.tar.gz
archweb-746023d529489b68f1a2494ff7572734b3b368ce.tar.xz
Make page a query string parameter on package search
This is a bit silly to encode in the URL, or at least makes it much harder to screen out via robots.txt and other such things. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/search_paginator.html')
-rw-r--r--templates/packages/search_paginator.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/search_paginator.html b/templates/packages/search_paginator.html
index 758dca4..3c368b8 100644
--- a/templates/packages/search_paginator.html
+++ b/templates/packages/search_paginator.html
@@ -6,7 +6,7 @@
<div class="pkglist-nav">
<span class="prev">
{% if page_obj.has_previous %}
- <a href="/packages/{{ page_obj.previous_page_number }}/?{{ current_query }}"
+ <a href="?page={{ page_obj.previous_page_number }}&amp;{{ current_query }}"
title="Go to previous page">&lt; Prev</a>
{% else %}
&lt; Prev
@@ -14,7 +14,7 @@
</span>
<span class="next">
{% if page_obj.has_next %}
- <a href="/packages/{{ page_obj.next_page_number }}/?{{ current_query }}"
+ <a href="?page={{ page_obj.next_page_number }}&amp;{{ current_query }}"
title="Go to next page">Next &gt;</a>
{% else %}
Next &gt;