Revert "fix: special characters in redirect url getting decoded to space (#1029)" (#1030)

This reverts commit fc62241332.
This commit is contained in:
Syed Sajjad Hussain Shah
2023-08-15 15:45:31 +05:00
committed by GitHub
parent fc62241332
commit 9730a4f55d

View File

@@ -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) {