windy 4 years ago
parent
commit
d961c6d87f
  1. 3
      src/router/router.js

3
src/router/router.js

@ -298,11 +298,12 @@
return _.map(params, function (param, i) { return _.map(params, function (param, i) {
// Don't decode the search params. // Don't decode the search params.
if (i === params.length - 1) return param || null; if (i === params.length - 1) return param || null;
var resultParam = param; var resultParam = null;
if (param) { if (param) {
try { try {
resultParam = decodeURIComponent(param); resultParam = decodeURIComponent(param);
} catch (e) { } catch (e) {
resultParam = param;
} }
} }
return resultParam; return resultParam;

Loading…
Cancel
Save