Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #285 from sandeep-deriv/sandeep/reroute-crash-fix
Browse files Browse the repository at this point in the history
sandeep/reroute-crash-fix
  • Loading branch information
sandeep-deriv authored Mar 15, 2024
2 parents 3110eed + 74612bf commit f1b3144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default function Auth(): JSX.Element {

if (is_logged_in) {
const params = new URLSearchParams(search);
const redirect_route = params.get('route').replace(/%2F/g, '/') || '/';
const redirect_route = params.get('route')?.replace(/%2F/g, '/') || '/';

return <Redirect to={redirect_route} />;
}

Expand Down

0 comments on commit f1b3144

Please sign in to comment.