Skip to content
Snippets Groups Projects
Commit 819d1df6 authored by Fabien Meghazi's avatar Fabien Meghazi
Browse files

[FIX] request.website browse record bad context

parent 82a91621
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,8 @@ class ir_http(orm.AbstractModel): ...@@ -123,6 +123,8 @@ class ir_http(orm.AbstractModel):
# to url without language so google doesn't see duplicate content # to url without language so google doesn't see duplicate content
return request.redirect(path + '?' + request.httprequest.query_string, code=301) return request.redirect(path + '?' + request.httprequest.query_string, code=301)
return self.reroute(path) return self.reroute(path)
# bind modified context
request.website = request.website.with_context(request.context)
return super(ir_http, self)._dispatch() return super(ir_http, self)._dispatch()
def reroute(self, path): def reroute(self, path):
......
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