summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-11-28 18:13:02 -0500
committerArmaan Bhojwani <me@armaanb.net>2021-11-28 18:13:02 -0500
commit5fd3b46f1077f4c60a78d5098b055a64516c8e64 (patch)
tree938909725b59a0c2f0272b0fd0b1afba4ab14e8d
parent61edfae9d7dd50a0aa104e20292d3c4f1b675c38 (diff)
downloadbettersearch-master.tar.gz
Fix next/previous page linksHEADmaster
-rw-r--r--templates/search.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/search.html b/templates/search.html
index b3cf72d..5249278 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -18,11 +18,12 @@
</dl>
<p style="text-align: left;">
- <a href="search?q=query&pageno=@(- (string->number pageno) 1)"
+ <a href="search?pageno=@(- (string->number pageno) 1)&q=@query"
style="@(when (equal? pageno "1") "visibility: hidden")">
Previous
</a>
<span style="float: right;">
-<a href="/search?q=query&pageno=@(+ (string->number pageno) 1)">Next</a>
+ <a href="/search?pageno=@(+ (string->number pageno) 1)&q=@query">Next
+ </a>
</span>
</p>