[PATCH alps-patches v3] themes/alps: fix search pagination links
Export this patch
From: Konstantinos Koukas <contact@koukas.org>
---
Search pagination links do not contain the query.
The search stops once either button is clicked.
themes/alps/messages-header.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/themes/alps/messages-header.html b/themes/alps/messages-header.html
index df70e06..195f0c5 100644
--- a/themes/alps/messages-header.html
@@ -42,10 +42,10 @@
{{if or (ge .PrevPage 0) (ge .NextPage 0) }}
<div class="actions-pagination">
{{if ge .PrevPage 0}}
- <a href="?page={{.PrevPage}}" class="button-link">«</a>
+ <a href="?page={{.PrevPage}}{{if .Query}}&query={{.Query}}{{end}}" class="button-link">«</a>
{{end}}
{{if ge .NextPage 0}}
- <a href="?page={{.NextPage}}" class="button-link">»</a>
+ <a href="?page={{.NextPage}}{{if .Query}}&query={{.Query}}{{end}}" class="button-link">»</a>
{{end}}
</div>
{{ end }}
--
2.38.5
Pushed with a minor edit to simplify by using "with" instead of "if".
Thanks!