Scheduling infrastructure for absolutely everyone.
fix: change the origin to webapp url (#19593)
Anik Dhabal Babufa79b7e993fc
diff --git a/packages/app-store/routing-forms/getEventTypeRedirectUrl.ts b/packages/app-store/routing-forms/getEventTypeRedirectUrl.tsindex d74d195fc73..485ca76f540 100644--- a/packages/app-store/routing-forms/getEventTypeRedirectUrl.ts+++ b/packages/app-store/routing-forms/getEventTypeRedirectUrl.ts@@ -1,4 +1,4 @@-import { CAL_URL } from "@calcom/lib/constants";+import { WEBAPP_URL } from "@calcom/lib/constants";import type { Ensure } from "@calcom/types/utils";function getUserAndEventTypeSlug(eventTypeRedirectUrl: string) {@@ -77,14 +77,14 @@ export function getAbsoluteEventTypeRedirectUrl({if (teamSlugInRedirectUrl && form.nonOrgTeamslug) {const isEventTypeRedirectToOldTeamSlug = teamSlugInRedirectUrl === form.nonOrgTeamslug;if (isEventTypeRedirectToOldTeamSlug) {- return `${CAL_URL}/${eventTypeRedirectUrl}?${allURLSearchParams}`;+ return `${WEBAPP_URL}/${eventTypeRedirectUrl}?${allURLSearchParams}`;}}if (usernameInRedirectUrl && form.nonOrgUsername) {const isEventTypeRedirectToOldUser = usernameInRedirectUrl === form.nonOrgUsername;if (isEventTypeRedirectToOldUser) {- return `${CAL_URL}/${eventTypeRedirectUrl}?${allURLSearchParams}`;+ return `${WEBAPP_URL}/${eventTypeRedirectUrl}?${allURLSearchParams}`;}}