Slug redirects loses query_string

This commit is contained in:
Fabien Meghazi 2014-05-20 10:25:39 +02:00
parent ffb18d0af3
commit 59bfda8efd
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class ir_http(orm.AbstractModel):
if generated_path != current_path:
if request.lang != request.website.default_lang_code:
path = '/' + request.lang + path
if request.httprequest.query_string:
path += '?' + request.httprequest.query_string
return werkzeug.utils.redirect(path)
def _serve_attachment(self):