mirror of
https://github.com/janeczku/calibre-web
synced 2025-01-09 08:50:30 +00:00
fix pagination jinja custom function
This commit is contained in:
parent
51eb6bddf6
commit
ae5ccf6e91
@ -44,6 +44,8 @@ def url_for_other_page(page):
|
|||||||
args = request.view_args.copy()
|
args = request.view_args.copy()
|
||||||
args['page'] = page
|
args['page'] = page
|
||||||
for get, val in request.args.items():
|
for get, val in request.args.items():
|
||||||
|
if get == "page":
|
||||||
|
continue
|
||||||
args[get] = val
|
args[get] = val
|
||||||
return url_for(request.endpoint, **args)
|
return url_for(request.endpoint, **args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user