From 870131e832e4a0b0822bdbd5e3bb4762406c541b Mon Sep 17 00:00:00 2001 From: Syed Sajjad Hussain Shah <52817156+syedsajjadkazmii@users.noreply.github.com> Date: Tue, 15 Aug 2023 15:22:58 +0500 Subject: [PATCH] Revert "fix: special characters in redirect url getting decoded to space (#1029)" This reverts commit fc622413320aecbb93587674c1a41f6c59330264. --- src/data/utils/dataUtils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data/utils/dataUtils.js b/src/data/utils/dataUtils.js index 3d5259ece..d1ba55bc2 100644 --- a/src/data/utils/dataUtils.js +++ b/src/data/utils/dataUtils.js @@ -50,9 +50,7 @@ export const updatePathWithQueryParams = (path) => { }; export const getAllPossibleQueryParams = (locationURl = null) => { - const urlParams = locationURl - ? QueryString.parseUrl(locationURl, { decode: false }).query - : QueryString.parse(window.location.search, { decode: false }); + const urlParams = locationURl ? QueryString.parseUrl(locationURl).query : QueryString.parse(window.location.search); const params = {}; Object.entries(urlParams).forEach(([key, value]) => { if (AUTH_PARAMS.indexOf(key) > -1) {