[FIX] website: ir_http: when rerouting url containing default language -> url without language, the ? was missing, leading to wrong urls.
This commit is contained in:
parent
319f4cb270
commit
62c0f6bf11
|
@ -72,7 +72,7 @@ class ir_http(orm.AbstractModel):
|
|||
if request.lang == request.website.default_lang_code:
|
||||
# If language is in the url and it is the default language, redirect
|
||||
# to url without language so google doesn't see duplicate content
|
||||
return request.redirect(path + request.httprequest.query_string)
|
||||
return request.redirect(path + '?' + request.httprequest.query_string)
|
||||
return self.reroute(path)
|
||||
return self._handle_exception(code=404)
|
||||
return super(ir_http, self)._dispatch()
|
||||
|
|
Loading…
Reference in New Issue