diff --git a/assets/preload-plugins/loginRedirect.js b/assets/preload-plugins/loginRedirect.js index 695515b3..c527d79d 100644 --- a/assets/preload-plugins/loginRedirect.js +++ b/assets/preload-plugins/loginRedirect.js @@ -5,7 +5,7 @@ const redirectIfOnLogin = () => { const path = window.location.pathname; if (path == "/login" || path == "/register" || !localStorage.getItem("token")) { window.location.pathname = "/login"; - window.location.reload(); + //window.location.reload(); } };