From 9d907b5eb592c8a0dc50bcbd0a267ebe64144308 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 22 Jan 2022 09:38:01 +0100 Subject: [PATCH] Bugfix/improve the redirection on logout (#642) * Improve logout * Update changelog --- CHANGELOG.md | 4 ++++ apps/client/src/app/app.component.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c000eb252..d61e7b508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded _Stripe_ dependencies - Upgraded `prisma` from version `3.7.0` to `3.8.1` +### Fixed + +- Improved the redirection on logout + ## 1.105.0 - 20.01.2022 ### Added 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() {