Fix for changing locale on other networks than mainnet.

fixes #253
This commit is contained in:
softsimon 2020-12-05 02:08:54 +07:00
parent 02d3a56061
commit 1ea44c9e0f

View File

@ -259,6 +259,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.document.location.href = `${language === 'en' ? '' : '/' + language}/${this.stateService.network}`;
}
}