From daeec9bcde3d5ed7cc52cad5a6f4b97d50bf6ab4 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Fri, 21 Jan 2022 20:42:08 +0100 Subject: [PATCH] Improve logout --- apps/client/src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index aeb996b9d..7f6774f52 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -89,7 +89,7 @@ export class AppComponent implements OnDestroy, OnInit { this.tokenStorageService.signOut(); this.userService.remove(); - this.router.navigate(['/']); + document.location.href = '/'; } public ngOnDestroy() {