mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
fixed url_for return without port when port is not the standard port.
This commit is contained in:
parent
eb22fbf9fa
commit
4a2f67bc00
@ -250,7 +250,7 @@ class Pagination(object):
|
|||||||
def url_for_other_page(page):
|
def url_for_other_page(page):
|
||||||
args = request.view_args.copy()
|
args = request.view_args.copy()
|
||||||
args['page'] = page
|
args['page'] = page
|
||||||
return url_for(request.endpoint, **args)
|
return url_for(request.endpoint, _external=True, **args)
|
||||||
|
|
||||||
|
|
||||||
app.jinja_env.globals['url_for_other_page'] = url_for_other_page
|
app.jinja_env.globals['url_for_other_page'] = url_for_other_page
|
||||||
|
Loading…
Reference in New Issue
Block a user