mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix: login redirection issue (#5207)
This commit is contained in:
parent
ba848908bc
commit
1374b42284
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue