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() {