fix: bookerUrl for the user that isn't part of the org but appears in a team inside the org (#12911)
This commit is contained in:
1 parent
dea873fef1
commit
a03a1ba34e
1 file changed
+1
-1
@@ -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()}`;
|
||||
|
||||
Reference in new issue
Block a user