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
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class Pagination(object):
def url_for_other_page(page):
args = request.view_args.copy()
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