missing remove appl name

This commit is contained in:
Edouard DUPIN 2022-06-13 22:45:47 +02:00
parent ae915b34a6
commit a011492f50

View File

@ -34,8 +34,10 @@ export class SSOService {
if (pathName.startsWith("/sso/") || pathName.startsWith(environment.applName + "/sso/")) { if (pathName.startsWith("/sso/") || pathName.startsWith(environment.applName + "/sso/")) {
return this.utf8_to_b64('home'); return this.utf8_to_b64('home');
} }
if (pathName.startsWith(environment.applName + "/sso/")) { if (pathName.startsWith(environment.applName + '/')) {
pathName = pathName.substring(environment.applName.length + 1); pathName = pathName.substring(environment.applName.length+1);
} else if (pathName.startsWith(environment.applName)) {
pathName = pathName.substring(environment.applName.length);
} }
return this.utf8_to_b64(pathName); return this.utf8_to_b64(pathName);
} }