Skip to content

Commit

Permalink
revert: reintroduce redirect bug to be fixed later (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
freemvmt authored Jul 12, 2024
1 parent bca0fdd commit 90de566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor.planx.uk/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const hasJWT = (): boolean | void => {
// Remove JWT from URL, and re-run this function
setCookie("jwt", jwtSearchParams);
setCookie("auth", { loggedIn: true });
window.history.go(-1);
// TODO: observe any redirect in secure fashion
window.location.href = "/";
};

const Layout: React.FC<{
Expand Down

0 comments on commit 90de566

Please sign in to comment.