Scheduling infrastructure for absolutely everyone.
Default `fetchCrm` to true for `getRoutedUrl` (#24635)
Joe Au-Yeung4d3727db1261
diff --git a/packages/features/routing-forms/lib/getRoutedUrl.ts b/packages/features/routing-forms/lib/getRoutedUrl.tsindex d354740261b..876c7f76d6a 100644--- a/packages/features/routing-forms/lib/getRoutedUrl.ts+++ b/packages/features/routing-forms/lib/getRoutedUrl.ts@@ -53,8 +53,7 @@ export function hasEmbedPath(pathWithQuery: string) {return onlyPath.endsWith("/embed") || onlyPath.endsWith("/embed/");}-// We have fetchCrm as configurable temporarily to allow us to test the CRM logic in the APIV2. Soon after we would hardcode it to true-const _getRoutedUrl = async (context: Pick<GetServerSidePropsContext, "query" | "req">, fetchCrm = false) => {+const _getRoutedUrl = async (context: Pick<GetServerSidePropsContext, "query" | "req">, fetchCrm = true) => {const queryParsed = querySchema.safeParse(context.query);const isEmbed = hasEmbedPath(context.req.url || "");const pageProps = {