From 8a25dccf6eba86ea233e49626c64a4b03562dd10 Mon Sep 17 00:00:00 2001 From: Dan Goss Date: Fri, 12 Jul 2024 13:40:31 +0100 Subject: [PATCH] revert #3302 - reintroduce redirect bug to be fixed later --- editor.planx.uk/src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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<{