Skip to content

Scheduling infrastructure for absolutely everyone.

fix (#25818)

sean-brydonf0a7d69c7ef7
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 38f92e0dfb6..f18307873a9 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 = ({
<Icon name="arrow-right" className="text-subtle h-4 w-4" />
<Icon name="rotate-cw" className="text-subtle h-4 w-4" />
</div>
- <div className="bg-cal-muted flex w-full items-center gap-2 rounded-[32px] px-3 py-2">
+ <div className="bg-cal-muted flex w-full min-w-0 items-center gap-2 rounded-[32px] px-3 py-2">
<Icon name="lock" className="text-subtle h-4 w-4" />
- <p className="text-default text-sm font-medium leading-tight">{webappUrl}/teams</p>
+ <p className="text-default truncate text-sm font-medium leading-tight">{displayUrl}/teams</p>
</div>
<Icon name="ellipsis-vertical" className="text-subtle h-4 w-4" />
</div>
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 ce4d36668b2..181f5cf2e7f 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}
/>
</OnboardingLayout>
);