Fix tenant domain append for organization management related resource urls
@@ -121,7 +121,8 @@ public class DefaultServiceURLBuilder implements ServiceURLBuilder {
String resolvedUrlContext = buildUrlPath(urlPaths);
StringBuilder resolvedUrlStringBuilder = new StringBuilder();
- if (IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && !resolvedUrlContext.startsWith("t/")) {
+ if (IdentityTenantUtil.isTenantQualifiedUrlsEnabled() && !resolvedUrlContext.startsWith("t/") &&
+ !resolvedUrlContext.startsWith("o/")) {
if (mandateTenantedPath || isNotSuperTenant(tenantDomain)) {
resolvedUrlStringBuilder.append("/t/").append(tenantDomain);
}
