diff --git a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx index e7939e3456..24488c5b7c 100644 --- a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx +++ b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx @@ -1,6 +1,7 @@ import { useAutoAnimate } from "@formkit/auto-animate/react"; import type { Props } from "react-select"; +import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider"; import { classNames } from "@calcom/lib"; import { WEBSITE_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; @@ -34,7 +35,10 @@ export const ChildrenEventTypeSelect = ({ onChange: (value: readonly ChildrenEventType[]) => void; }) => { const { t } = useLocale(); + const orgBranding = useOrgBranding(); + const [animationRef] = useAutoAnimate(); + const domain = orgBranding?.fullDomain ?? WEBSITE_URL; return ( <> @@ -105,7 +109,7 @@ export const ChildrenEventTypeSelect = ({ color="secondary" target="_blank" variant="icon" - href={`${WEBSITE_URL}/${children.owner?.username}/${children.slug}`} + href={`${domain}/${children.owner?.username}/${children.slug}`} StartIcon="external-link" />