From 8a413a97b42b3994b0b7705a1dc478fa72aa222a Mon Sep 17 00:00:00 2001 From: Denzil Samuel <71846487+samueldenzil@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:20:04 +0530 Subject: [PATCH] fix: allow different casing for team (#11546) --- apps/web/pages/team/[slug].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/team/[slug].tsx b/apps/web/pages/team/[slug].tsx index ce6aa2ce86..b557bf41e8 100644 --- a/apps/web/pages/team/[slug].tsx +++ b/apps/web/pages/team/[slug].tsx @@ -14,6 +14,7 @@ import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery"; import useTheme from "@calcom/lib/hooks/useTheme"; import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML"; import { getTeamWithMembers } from "@calcom/lib/server/queries/teams"; +import slugify from "@calcom/lib/slugify"; import { stripMarkdown } from "@calcom/lib/stripMarkdown"; import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry"; import prisma from "@calcom/prisma"; @@ -271,7 +272,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => ); const flags = await getFeatureFlagMap(prisma); const team = await getTeamWithMembers({ - slug, + slug: slugify(slug ?? ""), orgSlug: currentOrgDomain, isTeamView: true, isOrgView: isValidOrgDomain && context.resolvedUrl === "/",