Skip to content
Snippets Groups Projects
Commit 3e238439 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] http_routing: url_rewrite return now a tuple


Fix of refactoring 91b9dced

closes odoo/odoo#66927

X-original-commit: 03a318ff36949c80008ae35b4c744272c9986b9e
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent 0275085d
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ def url_for(url_from, lang_code=None, no_rewrite=False):
and '/static/' not in path
and not path.startswith('/web/')
)):
new_url = request.env['ir.http'].url_rewrite(path)
new_url, _ = request.env['ir.http'].url_rewrite(path)
new_url = new_url if not qs else new_url + '?%s' % qs
return url_lang(new_url or url_from, lang_code=lang_code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment