fix: accounts: when logout go back to last page

This commit is contained in:
2024-02-13 15:52:46 +01:00
parent d59a3dc646
commit 9128c0bf38
6 changed files with 9 additions and 13 deletions

View File

@ -115,11 +115,9 @@ const router = async(uri) => {
const view = new match.route.view(getParams(match), lastPageUrlBeforeLogin);
if (await client.isAuthenticated() === false && !(view instanceof AuthenticationView))
if (!(view instanceof AuthenticationView) && ! (view instanceof LogoutView))
lastPageUrlBeforeLogin = uri;
console.log(lastPageUrlBeforeLogin)
if (view instanceof AbstractRedirectView && await view.redirect())
return 1;