From 0eb9163fd8c6356e14f303b56cb4cf48b055d12b Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 13 Jun 2022 22:52:24 +0200 Subject: [PATCH] [DEV] missing / --- front/src/common/service/sso.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/front/src/common/service/sso.ts b/front/src/common/service/sso.ts index 082aa42..a097c2e 100644 --- a/front/src/common/service/sso.ts +++ b/front/src/common/service/sso.ts @@ -34,7 +34,11 @@ export class SSOService { if (pathName.startsWith("/sso/") || pathName.startsWith(environment.applName + "/sso/")) { 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); } else if (pathName.startsWith(environment.applName)) { pathName = pathName.substring(environment.applName.length);