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

pull/92/head
idalin 8 years ago
parent eb22fbf9fa
commit 4a2f67bc00

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

Loading…
Cancel
Save