From 627e8e5e9afee5ca1b9916b31d21440324aab690 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 12 Jan 2021 18:54:02 +0900 Subject: [PATCH] Possible fix for occasional inability to change language to English Fixes #275 --- frontend/src/app/dashboard/dashboard.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/dashboard/dashboard.component.ts b/frontend/src/app/dashboard/dashboard.component.ts index 745bb7187..662e16437 100644 --- a/frontend/src/app/dashboard/dashboard.component.ts +++ b/frontend/src/app/dashboard/dashboard.component.ts @@ -263,6 +263,6 @@ export class DashboardComponent implements OnInit { try { document.cookie = `lang=${language}; expires=Thu, 18 Dec 2050 12:00:00 UTC; path=/`; } catch (e) { } - this.document.location.href = `${language === 'en' ? '' : '/' + language}/${this.stateService.network}`; + this.document.location.href = `/${language}/${this.stateService.network}`; } }