[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:
--global 2014-05-23 10:39:26 +02:00
parent 319f4cb270
commit 62c0f6bf11
1 changed files with 1 additions and 1 deletions

View File

@ -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()