1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-01 05:49:58 +00:00

fixed url_for return without port when port is not the standard port.

This commit is contained in:
idalin 2017-01-16 16:26:20 +08:00
parent eb22fbf9fa
commit 4a2f67bc00

View File

@ -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