{"record":{"id":"55456384a8180b1c","repo":"vercel/next.js","slug":"form-received-apropname-that-contains-search","errorCode":null,"errorMessage":"<Form> received ${aPropName} that contains search params: \"${action}\". This is not supported, and they will be ignored. If you need to pass in additional search params, use an `<input type=\"hidden\" />` instead.","messagePattern":"<Form> received (.+?) that contains search params: \"(.+?)\"\\. This is not supported, and they will be ignored\\. If you need to pass in additional search params, use an `<input type=\"hidden\" />` instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/client/form-shared.tsx","lineNumber":121,"sourceCode":"export function checkFormActionUrl(\n  action: string,\n  source: 'action' | 'formAction'\n) {\n  const aPropName = source === 'action' ? `an \\`action\\`` : `a \\`formAction\\``\n\n  let testUrl: URL\n  try {\n    testUrl = new URL(action, 'http://n')\n  } catch (err) {\n    console.error(\n      `<Form> received ${aPropName} that cannot be parsed as a URL: \"${action}\".`\n    )\n    return\n  }\n\n  // url-encoded HTML forms ignore any queryparams in the `action` url. We need to match that.\n  if (testUrl.searchParams.size) {\n    console.warn(\n      `<Form> received ${aPropName} that contains search params: \"${action}\". This is not supported, and they will be ignored. ` +\n        `If you need to pass in additional search params, use an \\`<input type=\"hidden\" />\\` instead.`\n    )\n  }\n}\n\nexport const isSupportedFormEncType = (value: string) =>\n  value === 'application/x-www-form-urlencoded'\nexport const isSupportedFormMethod = (value: string) => value === 'get'\nexport const isSupportedFormTarget = (value: string) => value === '_self'\n\nexport function hasUnsupportedSubmitterAttributes(\n  submitter: HTMLElement\n): boolean {\n  // A submitter can override `encType` for the form.\n  const formEncType = submitter.getAttribute('formEncType')\n  if (formEncType !== null && !isSupportedFormEncType(formEncType)) {\n    if (process.env.NODE_ENV === 'development') {","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/client/form-shared.tsx#L103-L139","documentation":"Error \"<Form> received ${aPropName} that contains search params: \"${action}\". This is not supported, and they will be ignored. If you need to pass in additional search params, use an `<input type=\"hidden\" />` instead.\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/client/form-shared.tsx:121 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove search params from the action string and pass them via `<input type=\"hidden\" />` fields instead."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}