[DEV] missing /

This commit is contained in:
Edouard DUPIN 2022-06-13 22:52:24 +02:00
parent a011492f50
commit 0eb9163fd8

View File

@ -34,7 +34,11 @@ 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 + '/')) { if (pathName.startsWith('/' + environment.applName + '/')) {
pathName = pathName.substring(environment.applName.length+2);
} else if (pathName.startsWith('/' + environment.applName)) {
pathName = pathName.substring(environment.applName.length + 1);
} else 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)) { } else if (pathName.startsWith(environment.applName)) {
pathName = pathName.substring(environment.applName.length); pathName = pathName.substring(environment.applName.length);