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

@ -7,9 +7,7 @@ export default class extends AbstractNonAuthenticatedView
{
constructor(params, lastUrlBeforeLogin = '/home')
{
super(params, lang.get('loginWindowTitle', 'Login'), lastUrlBeforeLogin);
this.redirect_url = lastUrlBeforeLogin;
this.current_mode = undefined
}

View File

@ -4,7 +4,7 @@ import AbstractAuthenticatedView from "../abstracts/AbstractAuthenticatedView.js
export default class extends AbstractAuthenticatedView
{
constructor(params, lastPageUrl = '/login') {
super(params, lang.get('logoutWindowTitle', 'Logout'));
super(params, lang.get('logoutWindowTitle', 'Logout'), lastPageUrl);
this.lastPageUrl = lastPageUrl;
}