diff --git a/packages/cli/templates/defaults/app/route-templates/html.tsx b/packages/cli/templates/defaults/app/route-templates/html.tsx index d4fa64509859..53454455327c 100644 --- a/packages/cli/templates/defaults/app/route-templates/html.tsx +++ b/packages/cli/templates/defaults/app/route-templates/html.tsx @@ -246,6 +246,7 @@ const getRequestHost = (request: Request): string => export const action = async ({ request, context, + params, }: ActionFunctionArgs): Promise< { success: true } | { success: false; errors: string[] } > => { @@ -258,7 +259,7 @@ export const action = async ({ const formData = await request.formData(); const system = { - params: {}, + params, search: {}, origin: url.origin, pathname: url.pathname, diff --git a/packages/cli/templates/react-router/app/route-templates/html.tsx b/packages/cli/templates/react-router/app/route-templates/html.tsx index bb66055fa7ae..ab32322b112d 100644 --- a/packages/cli/templates/react-router/app/route-templates/html.tsx +++ b/packages/cli/templates/react-router/app/route-templates/html.tsx @@ -245,6 +245,7 @@ const getRequestHost = (request: Request): string => export const action = async ({ request, context, + params, }: ActionFunctionArgs): Promise< { success: true } | { success: false; errors: string[] } > => { @@ -257,7 +258,7 @@ export const action = async ({ const formData = await request.formData(); const system = { - params: {}, + params, search: {}, origin: url.origin, pathname: url.pathname,