diff --git a/nyaa/template_utils.py b/nyaa/template_utils.py index 667ba7f..9555d03 100644 --- a/nyaa/template_utils.py +++ b/nyaa/template_utils.py @@ -66,6 +66,8 @@ def static_cachebuster(filename): def modify_query(**new_values): args = flask.request.args.copy() + args.pop('p') + for key, value in new_values.items(): args[key] = value