Skip to content

Commit

Permalink
improved url search params parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
arosiclair committed Jul 29, 2022
1 parent e5081a2 commit d5178b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ function setUpPoliciesAndNavigate(session, currentPath) {

let exitTo;
try {
const params = new URLSearchParams(currentPath);
exitTo = params.get('exitTo');
const url = new URL(currentPath, CONST.NEW_EXPENSIFY_URL);
exitTo = url.searchParams.get('exitTo');
} catch (error) {
// URLSearchParams is unsupported on iOS so we catch th error and
// silence it here since this is primarily a Web flow
Expand Down

0 comments on commit d5178b3

Please sign in to comment.