Skip to content

Commit

Permalink
getQueryParam already does decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl committed Jun 3, 2022
1 parent 01ef222 commit 2a7b2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/utilities/helpers/routing-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ class RoutingHelpersClass {

getModalPathFromPath() {
const path = this.getQueryParam(this.getModalViewParamName());
return path && decodeURIComponent(path);
return path;
}

getModalParamsFromPath() {
const modalParamsStr = this.getQueryParam(`${this.getModalViewParamName()}Params`);
return modalParamsStr && JSON.parse(decodeURIComponent(modalParamsStr));
return modalParamsStr && JSON.parse(modalParamsStr);
}

addRouteChangeListener(callback) {
Expand Down

0 comments on commit 2a7b2c7

Please sign in to comment.