From a03a1ba34ee395fadd1f16a6085587d918e63267 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 21 Dec 2023 17:47:41 +0530 Subject: [PATCH] fix: bookerUrl for the user that isn't part of the org but appears in a team inside the org (#12911) --- packages/features/ee/organizations/lib/orgDomains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/ee/organizations/lib/orgDomains.ts b/packages/features/ee/organizations/lib/orgDomains.ts index 878455235c..461f5e2c03 100644 --- a/packages/features/ee/organizations/lib/orgDomains.ts +++ b/packages/features/ee/organizations/lib/orgDomains.ts @@ -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()}`;