From 4d3727db1261294e44465a484f0ed4aba34f1be1 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:44:42 -0400 Subject: [PATCH] Default `fetchCrm` to true for `getRoutedUrl` (#24635) --- packages/features/routing-forms/lib/getRoutedUrl.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/features/routing-forms/lib/getRoutedUrl.ts b/packages/features/routing-forms/lib/getRoutedUrl.ts index d354740261..876c7f76d6 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, fetchCrm = false) => { +const _getRoutedUrl = async (context: Pick, fetchCrm = true) => { const queryParsed = querySchema.safeParse(context.query); const isEmbed = hasEmbedPath(context.req.url || ""); const pageProps = {