From ae5ccf6e91284ee5d0ed052d399382cf36b937d1 Mon Sep 17 00:00:00 2001 From: Chris Arderne Date: Wed, 3 Apr 2024 13:12:31 +0100 Subject: [PATCH] fix pagination jinja custom function --- cps/jinjia.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/jinjia.py b/cps/jinjia.py index 584e7d6b..14bdf7e3 100644 --- a/cps/jinjia.py +++ b/cps/jinjia.py @@ -44,6 +44,8 @@ def url_for_other_page(page): args = request.view_args.copy() args['page'] = page for get, val in request.args.items(): + if get == "page": + continue args[get] = val return url_for(request.endpoint, **args)