From 2a7b2c7f8e44af287b91ec47a804b6dd62dbb9f3 Mon Sep 17 00:00:00 2001 From: Philipp Pracht Date: Fri, 3 Jun 2022 15:41:37 +0200 Subject: [PATCH] getQueryParam already does decodeURIComponent --- core/src/utilities/helpers/routing-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/utilities/helpers/routing-helpers.js b/core/src/utilities/helpers/routing-helpers.js index d282445abe..d06afa9d7d 100644 --- a/core/src/utilities/helpers/routing-helpers.js +++ b/core/src/utilities/helpers/routing-helpers.js @@ -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) {