Decode param name and value

These can contain percent encodings that
will need to be decoded before used.
This commit is contained in:
Kevin Sawicki
2012-12-19 15:33:32 -08:00
parent 75b9e7cbb1
commit 5c2b7b400d

View File

@@ -8,7 +8,7 @@
var params = window.location.search.substring(1).split('&')
params.forEach(function(param) {
var pair = param.split("=")
window.location.params[pair[0]] = pair[1];
window.location.params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
});
window.resourcePath = window.location.params.resourcePath
@@ -30,4 +30,3 @@
<body>
</body>
</html>