Skip to content

Commit

Permalink
Merge pull request #407 from aranaravi/develop
Browse files Browse the repository at this point in the history
[MOSIP-28666]changed the language code to two char
  • Loading branch information
aranaravi authored Aug 2, 2023
2 parents b821b84 + c882825 commit 5806685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resident-ui/src/app/core/services/loginredirect.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Injectable } from '@angular/core';
import { v4 as uuid } from 'uuid';
import { AppConfigService } from 'src/app/app-config.service';
import defaultJson from "src/assets/i18n/default.json";

@Injectable()
export class LoginRedirectService {
Expand All @@ -13,7 +14,7 @@ export class LoginRedirectService {
if(url.split("#")[1] === "/dashboard"){
constructurl = url.replace("/dashboard", "/uinservices/dashboard");
}
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}` + btoa(constructurl)+"?state="+stateParam+"&ui_locales="+localStorage.getItem("langCode");
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}` + btoa(constructurl)+"?state="+stateParam+"&ui_locales="+defaultJson["keyboardMapping"][localStorage.getItem("langCode")];
localStorage.setItem("redirectURL", constructurl)
}

Expand Down

0 comments on commit 5806685

Please sign in to comment.