diff --git a/pre-registration-ui/src/app/auth/login/login.component.ts b/pre-registration-ui/src/app/auth/login/login.component.ts index fc16852f..c7ed4c7b 100644 --- a/pre-registration-ui/src/app/auth/login/login.component.ts +++ b/pre-registration-ui/src/app/auth/login/login.component.ts @@ -111,6 +111,10 @@ export class LoginComponent implements OnInit { ); this.isCaptchaEnabled(); this.loadLanguagesWithConfig(); + let urlLangCode = this.router.url.split("/").pop(); + if (this.languageSelectionArray.indexOf(urlLangCode) !== -1){ + localStorage.setItem("langCode", urlLangCode); + } if (!localStorage.getItem("langCode")) { localStorage.setItem("langCode", this.languageSelectionArray[0]); }