Commit 4a2f67bc authored by idalin's avatar idalin

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

parent eb22fbf9
...@@ -250,7 +250,7 @@ class Pagination(object): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment