summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.js4
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);
});