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

Merge pull request #66 from odoo-dev/master-fix-slug-redirect-fme

Slug redirects loses query_string
parents ffb18d0a 59bfda8e
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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