Skip to content

Commit

Permalink
fix: special characters in redirect url getting decoded to space (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed Aug 15, 2023
1 parent 0846001 commit fc62241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/utils/dataUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export const updatePathWithQueryParams = (path) => {
};

export const getAllPossibleQueryParams = (locationURl = null) => {
const urlParams = locationURl ? QueryString.parseUrl(locationURl).query : QueryString.parse(window.location.search);
const urlParams = locationURl
? QueryString.parseUrl(locationURl, { decode: false }).query
: QueryString.parse(window.location.search, { decode: false });
const params = {};
Object.entries(urlParams).forEach(([key, value]) => {
if (AUTH_PARAMS.indexOf(key) > -1) {
Expand Down

0 comments on commit fc62241

Please sign in to comment.