From 1c523aa1be2e5b72b0e17ddf71be3cc71a6143df Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 30 Oct 2013 19:24:00 +0100 Subject: [PATCH] [FIX] http: bind RouteMap using environ to allow correct redirections (manual forward port of revid 3860 chs@openerp.com-20131023162646-9t8iu2okkddg56yi from web branch) bzr revid: chs@openerp.com-20131030182400-bfuvl2209a7e1ifz --- openerp/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index bfafc8c93b1..c05eea91b0a 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1033,7 +1033,7 @@ class Root(object): Tries to discover the controller handling the request for the path specified in the request. """ path = request.httprequest.path - urls = self.get_db_router(request.db).bind("") + urls = self.get_db_router(request.db).bind_to_environ(request.httprequest.environ) func, arguments = urls.match(path) arguments = dict([(k, v) for k, v in arguments.items() if not k.startswith("_ignored_")])