[FIX] website: escaped hash and url
To be valid for the redirection, the url and the hash must be percent encoded. opw:646837
This commit is contained in:
parent
3074835079
commit
a1328c9054
|
@ -368,8 +368,8 @@
|
||||||
// retrieve the hash before the redirect
|
// retrieve the hash before the redirect
|
||||||
var redirect = {
|
var redirect = {
|
||||||
lang: self.data('lang'),
|
lang: self.data('lang'),
|
||||||
url: self.attr('href'),
|
url: encodeURIComponent(self.attr('href')),
|
||||||
hash: location.hash
|
hash: encodeURIComponent(location.hash)
|
||||||
};
|
};
|
||||||
location.href = _.str.sprintf("/website/lang/%(lang)s?r=%(url)s%(hash)s", redirect);
|
location.href = _.str.sprintf("/website/lang/%(lang)s?r=%(url)s%(hash)s", redirect);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue