From 4a2f67bc00676d323f16e3fc42576a77cd317dea Mon Sep 17 00:00:00 2001 From: idalin Date: Mon, 16 Jan 2017 16:26:20 +0800 Subject: [PATCH] fixed url_for return without port when port is not the standard port. --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index e07c8e46..69b96a48 100755 --- a/cps/web.py +++ b/cps/web.py @@ -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