summaryrefslogtreecommitdiffstats
path: root/packages/views
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 /packages/views
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 'packages/views')
-rw-r--r--packages/views/display.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/views/display.py b/packages/views/display.py
index 497c8d4..fcf8fde 100644
--- a/packages/views/display.py
+++ b/packages/views/display.py
@@ -104,6 +104,8 @@ def redirect_agnostic(request, name, repo, arch):
def redirect_to_search(request, name, repo, arch):
+ if request.GET.get('q'):
+ name = request.GET.get('q')
pkg_data = [
('arch', arch.lower()),
('repo', repo.lower()),