diff --git a/editor.planx.uk/src/index.tsx b/editor.planx.uk/src/index.tsx index 9e178d4167..50e58d2691 100644 --- a/editor.planx.uk/src/index.tsx +++ b/editor.planx.uk/src/index.tsx @@ -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<{