From f0a7d69c7ef7f585853744d76ec5fd432d3feefa Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Fri, 12 Dec 2025 10:26:56 +0000 Subject: [PATCH] fix (#25818) --- .../components/onboarding-teams-browser-view.tsx | 10 ++++++---- .../organization/teams/organization-teams-view.tsx | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/web/modules/onboarding/components/onboarding-teams-browser-view.tsx b/apps/web/modules/onboarding/components/onboarding-teams-browser-view.tsx index 38f92e0dfb..f18307873a 100644 --- a/apps/web/modules/onboarding/components/onboarding-teams-browser-view.tsx +++ b/apps/web/modules/onboarding/components/onboarding-teams-browser-view.tsx @@ -3,7 +3,7 @@ import { AnimatePresence, motion } from "framer-motion"; import { usePathname } from "next/navigation"; -import { WEBAPP_URL } from "@calcom/lib/constants"; +import { subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomains"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Avatar } from "@calcom/ui/components/avatar"; import { Icon } from "@calcom/ui/components/icon"; @@ -13,6 +13,7 @@ type OnboardingTeamsBrowserViewProps = { organizationLogo?: string | null; organizationName?: string; organizationBanner?: string | null; + slug?: string; }; export const OnboardingTeamsBrowserView = ({ @@ -20,10 +21,11 @@ export const OnboardingTeamsBrowserView = ({ organizationLogo, organizationName, organizationBanner, + slug, }: OnboardingTeamsBrowserViewProps) => { const pathname = usePathname(); const { t } = useLocale(); - const webappUrl = WEBAPP_URL.replace(/^https?:\/\//, ""); + const displayUrl = slug ? `${slug}.${subdomainSuffix()}` : subdomainSuffix(); // Show placeholder if no teams or all teams are empty const hasValidTeams = teams.some((team) => team.name && team.name.trim().length > 0); @@ -54,9 +56,9 @@ export const OnboardingTeamsBrowserView = ({ -
+
-

{webappUrl}/teams

+

{displayUrl}/teams

diff --git a/apps/web/modules/onboarding/organization/teams/organization-teams-view.tsx b/apps/web/modules/onboarding/organization/teams/organization-teams-view.tsx index ce4d36668b..181f5cf2e7 100644 --- a/apps/web/modules/onboarding/organization/teams/organization-teams-view.tsx +++ b/apps/web/modules/onboarding/organization/teams/organization-teams-view.tsx @@ -150,6 +150,7 @@ export const OrganizationTeamsView = ({ userEmail }: OrganizationTeamsViewProps) organizationLogo={organizationBrand.logo} organizationName={organizationDetails.name} organizationBanner={organizationBrand.banner} + slug={organizationDetails.link} /> );