From a011492f50bb9bfb0935198cab703ca002326e33 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 13 Jun 2022 22:45:47 +0200 Subject: [PATCH] missing remove appl name --- front/src/common/service/sso.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/src/common/service/sso.ts b/front/src/common/service/sso.ts index 4d70669..082aa42 100644 --- a/front/src/common/service/sso.ts +++ b/front/src/common/service/sso.ts @@ -34,8 +34,10 @@ export class SSOService { if (pathName.startsWith("/sso/") || pathName.startsWith(environment.applName + "/sso/")) { return this.utf8_to_b64('home'); } - if (pathName.startsWith(environment.applName + "/sso/")) { - pathName = pathName.substring(environment.applName.length + 1); + if (pathName.startsWith(environment.applName + '/')) { + 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); }