Skip to content

Commit

Permalink
Merge pull request wso2#6462 from Yasasr1/yasas-custom-domain
Browse files Browse the repository at this point in the history
Skip custom domains for console and my account
  • Loading branch information
Yasasr1 authored Jun 19, 2024
2 parents 6be5815 + 70048af commit 60bc74e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-gorillas-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Skip custom domains for console and my account.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@
if (Boolean.parseBoolean(application.getInitParameter("IsHostedExternally"))) {
identityServerEndpointContextParam = application.getInitParameter("IdentityServerEndpointContextURL");
} else {
identityServerEndpointContextParam = ServiceURLBuilder.create().setTenant(tenantDomain).build().getAbsolutePublicURL();
spAppName = request.getParameter(SERVICE_PROVIDER_NAME_SHORT);
ServiceURLBuilder serviceUrlBuilder = ServiceURLBuilder.create().setTenant(tenantDomain);
if ("My Account".equals(spAppName) || "Console".equals(spAppName)) {
serviceUrlBuilder.setSkipDomainBranding(true);
}
identityServerEndpointContextParam = serviceUrlBuilder.build().getAbsolutePublicURL();
}
if (StringUtils.isNotBlank(identityServerEndpointContextParam)) {
Expand Down

0 comments on commit 60bc74e

Please sign in to comment.