fix: remove event type URL for managed event types (#23357)

* fix(event-types): remove event type URL for managed event types

* /teamSlug/eventTypeSlug returns 404 for managed event types

* chore

---------

Co-authored-by: Kartik Saini <[email protected]>
This commit is contained in:
Sahitya ChandraandKartik Saini authored and GitHub committed 2025-08-30 20:58:58 +05:30
1 parent 0bcb81bedd
commit 73b0693632
2 files changed
+9 -6

No files matched your search

@@ -26,6 +26,7 @@ import { useGetTheme } from "@calcom/lib/hooks/useTheme";
import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery";
import { HttpError } from "@calcom/lib/http-error";
import { parseEventTypeColor } from "@calcom/lib/isEventTypeColor";
import { localStorage } from "@calcom/lib/webstorage";
import type { MembershipRole } from "@calcom/prisma/enums";
import { SchedulingType } from "@calcom/prisma/enums";
import type { RouterOutputs } from "@calcom/trpc/react";
@@ -176,13 +177,11 @@ const Item = ({
data-testid={`event-type-title-${type.id}`}>
{type.title}
</span>
{group.profile.slug ? (
{group.profile.slug && type.schedulingType !== SchedulingType.MANAGED ? (
<small
className="text-subtle hidden font-normal leading-4 sm:inline"
data-testid={`event-type-slug-${type.id}`}>
{`/${
type.schedulingType !== SchedulingType.MANAGED ? group.profile.slug : t("username_placeholder")
}/${type.slug}`}
{`/${group.profile.slug}/${type.slug}`}
</small>
) : null}
{readOnly && (
@@ -212,7 +211,7 @@ const Item = ({
data-testid={`event-type-title-${type.id}`}>
{type.title}
</span>
{group.profile.slug ? (
{group.profile.slug && type.schedulingType !== SchedulingType.MANAGED ? (
<small
className="text-subtle hidden font-normal leading-4 sm:inline"
data-testid={`event-type-slug-${type.id}`}>