Skip to content

Scheduling infrastructure for absolutely everyone.

fixed team URL in settings (#5031)

Peer Richelsencc7e4b3b338b
diff --git a/packages/features/ee/teams/components/v2/CreateNewTeam.tsx b/packages/features/ee/teams/components/v2/CreateNewTeam.tsx
index 2eaa051ded6..d62350b01f5 100644
--- a/packages/features/ee/teams/components/v2/CreateNewTeam.tsx
+++ b/packages/features/ee/teams/components/v2/CreateNewTeam.tsx
@@ -60,7 +60,7 @@ const CreateANewTeamForm = (props: { nextStep: () => void; setTeamId: (teamId: n
className="mt-2"
name="slug"
label={t("team_url")}
- addOnLeading={`${WEBAPP_URL}/`}
+ addOnLeading={`${WEBAPP_URL}/team/`}
value={value}
onChange={(e) => {
formMethods.setValue("slug", e?.target.value);
diff --git a/packages/features/ee/teams/pages/team-profile-view.tsx b/packages/features/ee/teams/pages/team-profile-view.tsx
index 01bbb71d11c..6eac130f8f2 100644
--- a/packages/features/ee/teams/pages/team-profile-view.tsx
+++ b/packages/features/ee/teams/pages/team-profile-view.tsx
@@ -4,6 +4,7 @@ import Link from "next/link";
import { useRouter } from "next/router";
import { Controller, useForm } from "react-hook-form";
+import { WEBAPP_URL } from "@calcom/lib/constants";
import { getPlaceholderAvatar } from "@calcom/lib/getPlaceholderAvatar";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import objectKeys from "@calcom/lib/objectKeys";
@@ -173,7 +174,7 @@ const ProfileView = () => {
name="url"
label={t("team_url")}
value={value}
- addOnLeading="https://cal.com/"
+ addOnLeading={`${WEBAPP_URL}/team/`}
onChange={(e) => {
form.setValue("url", e?.target.value);
}}