From 1374b42284fee0b7770d5a1221ae91dee6598c55 Mon Sep 17 00:00:00 2001 From: Muhsin Shah C P Date: Thu, 5 Jan 2023 13:50:41 +0530 Subject: [PATCH] fix: login redirection issue (#5207) --- frontend/src/_services/authentication.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/_services/authentication.service.js b/frontend/src/_services/authentication.service.js index 93e5d76490..6c16e2560b 100644 --- a/frontend/src/_services/authentication.service.js +++ b/frontend/src/_services/authentication.service.js @@ -206,7 +206,7 @@ function resetPassword(params) { function logout() { clearUser(); const loginPath = (window.public_config?.SUB_PATH || '/') + 'login'; - history.push(loginPath + `?redirectTo=${window.location.pathname}`); + window.location.href = loginPath + `?redirectTo=${window.location.pathname}`; } function clearUser() {