user modal should not redirect after signout

This commit is contained in:
Jacob Overgaard
2024-01-19 16:24:14 +01:00
parent d0a659d539
commit e57ba681c0

View File

@@ -54,10 +54,7 @@ export class UmbCurrentUserModalElement extends UmbLitElement {
private async _logout() {
if (!this.#authContext) return;
await this.#authContext.signOut();
let newUrl = this.#appContext ? `${this.#appContext.getBackofficePath()}/login` : '/';
newUrl = newUrl.replace(/\/\//g, '/');
location.href = newUrl;
this.#authContext.signOut();
}
render() {