From 86ca9eaae6af2ed96e8bb939b5640d4b2da83e3c Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 17 Feb 2023 19:20:58 +0100 Subject: [PATCH] Bugfix/fix logout url in development (#1715) * Add language * Update changelog --- CHANGELOG.md | 1 + apps/client/src/app/app.component.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b32d6995..bae4f519 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue in the data gathering service (do not skip `MANUAL` data source) - Fixed the buying power calculation if no emergency fund is set but an activity is tagged as _Emergency Fund_ +- Fixed the url on logout during the local development ## 1.235.0 - 2023-02-16 diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index b6a40c06..d2369dda 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -104,7 +104,7 @@ export class AppComponent implements OnDestroy, OnInit { this.tokenStorageService.signOut(); this.userService.remove(); - document.location.href = '/'; + document.location.href = `/${document.documentElement.lang}`; } public ngOnDestroy() {