diff options
| author | Goffin Simon <sig@odoo.com> | 2015-08-10 15:10:59 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2015-08-10 16:18:16 +0200 |
| commit | a1328c9054c1907ce4996811bb7befc6ca031a7f (patch) | |
| tree | 0f1bb90ad7000a48a1ccc2a195e6ddae5421e4ca /addons/website/static/src/js/website.js | |
| parent | 30748350793e0291097a6ba5770c507938bdd84a (diff) | |
[FIX] website: escaped hash and url
To be valid for the redirection, the url and the hash
must be percent encoded.
opw:646837
Diffstat (limited to 'addons/website/static/src/js/website.js')
| -rw-r--r-- | addons/website/static/src/js/website.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.js b/addons/website/static/src/js/website.js index b2387745e4e..b12a33f9952 100644 --- a/addons/website/static/src/js/website.js +++ b/addons/website/static/src/js/website.js @@ -368,8 +368,8 @@ // retrieve the hash before the redirect var redirect = { lang: self.data('lang'), - url: self.attr('href'), - hash: location.hash + url: encodeURIComponent(self.attr('href')), + hash: encodeURIComponent(location.hash) }; location.href = _.str.sprintf("/website/lang/%(lang)s?r=%(url)s%(hash)s", redirect); }); |
