Possible fix for occasional inability to change language to English

Fixes #275
This commit is contained in:
wiz committed 2021-01-12 18:55:57 +09:00
1 parent 6c81ba521c
commit ee098e4d3b
1 file changed
+1 -1
@@ -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}`;
}
}