From 53b506365ff053008f27f7aa6dfd513889915756 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 19 Dec 2021 12:03:03 +0100 Subject: [PATCH] Improve redirection on 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 aeec70e6b..aeb996b9d 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(); - window.location.reload(); + this.router.navigate(['/']); } public ngOnDestroy() {