[FIX] request.website browse record bad context

This commit is contained in:
Fabien Meghazi 2014-09-16 11:27:06 +02:00
parent 9f481d6c64
commit 060fa29883
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class ir_http(orm.AbstractModel):
# to url without language so google doesn't see duplicate content
return request.redirect(path + '?' + request.httprequest.query_string, code=301)
return self.reroute(path)
# bind modified context
request.website = request.website.with_context(request.context)
return super(ir_http, self)._dispatch()
def reroute(self, path):