Skip to content

Commit

Permalink
fix: bookerUrl for the user that isn't part of the org but appears in…
Browse files Browse the repository at this point in the history
… a team inside the org
  • Loading branch information
hariombalhara committed Dec 21, 2023
1 parent e248dfb commit 025f3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/features/ee/organizations/lib/orgDomains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function subdomainSuffix() {
}

export function getOrgFullOrigin(slug: string, options: { protocol: boolean } = { protocol: true }) {
if (!slug) return WEBAPP_URL.replace("https://", "").replace("http://", "");
if (!slug) return options.protocol ? WEBAPP_URL : WEBAPP_URL.replace("https://", "").replace("http://", "");
const orgFullOrigin = `${
options.protocol ? `${new URL(WEBAPP_URL).protocol}//` : ""
}${slug}.${subdomainSuffix()}`;
Expand Down

0 comments on commit 025f3d6

Please sign in to comment.