fix: login redirection issue (#5207)

This commit is contained in:
Muhsin Shah C P 2023-01-05 13:50:41 +05:30 committed by GitHub
parent ba848908bc
commit 1374b42284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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