From 955302666e8f785951116768f0c1b670836efe78 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 19 Dec 2021 13:45:28 +0100 Subject: [PATCH] Bugfix/improve redirection on logout (#558) * Improve redirection on 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 596c07ee6..8e0d3f953 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 - Added a line chart to the historical data view in the admin control panel - Supported the update of historical data in the admin control panel +### Fixed + +- Improved the redirection on logout + ## 1.91.0 - 18.12.2021 ### Changed 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() {