{"record":{"id":"b885dcf4b410349a","repo":"vercel/next.js","slug":"shouldinterpolate-interpolating-href-mism","errorCode":null,"errorMessage":"${shouldInterpolate ? 'Interpolating href' : 'Mismatching `as` and `href`'} failed to manually provide the params: ${missingParams.join(', ')} in the `href`'s `query`","messagePattern":"(.+?) failed to manually provide the params: (.+?) in the `href`'s `query`","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/shared/lib/router/router.ts","lineNumber":1586,"sourceCode":"    if (isDynamicRoute(route)) {\n      const parsedAs = parseRelativeUrl(resolvedAs)\n      const asPathname = parsedAs.pathname\n\n      const routeRegex = getRouteRegex(route)\n      routeMatch = getRouteMatcher(routeRegex)(asPathname)\n      const shouldInterpolate = route === asPathname\n      const interpolatedAs = shouldInterpolate\n        ? interpolateAs(route, asPathname, query)\n        : ({} as { result: undefined; params: undefined })\n\n      if (!routeMatch || (shouldInterpolate && !interpolatedAs.result)) {\n        const missingParams = Object.keys(routeRegex.groups).filter(\n          (param) => !query[param] && !routeRegex.groups[param].optional\n        )\n\n        if (missingParams.length > 0 && !isMiddlewareMatch) {\n          if (process.env.NODE_ENV !== 'production') {\n            console.warn(\n              `${\n                shouldInterpolate\n                  ? `Interpolating href`\n                  : `Mismatching \\`as\\` and \\`href\\``\n              } failed to manually provide ` +\n                `the params: ${missingParams.join(\n                  ', '\n                )} in the \\`href\\`'s \\`query\\``\n            )\n          }\n\n          throw new Error(\n            (shouldInterpolate\n              ? `The provided \\`href\\` (${url}) value is missing query values (${missingParams.join(\n                  ', '\n                )}) to be interpolated properly. `\n              : `The provided \\`as\\` value (${asPathname}) is incompatible with the \\`href\\` value (${route}). `) +\n              `Read more: https://nextjs.org/docs/messages/${","sourceCodeStart":1568,"sourceCodeEnd":1604,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/shared/lib/router/router.ts#L1568-L1604","documentation":"Error \"${shouldInterpolate ? 'Interpolating href' : 'Mismatching `as` and `href`'} failed to manually provide the params: ${missingParams.join(', ')} in the `href`'s `query`\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/shared/lib/router/router.ts:1586 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the missing dynamic params in the `query` object of the href, e.g. `{ pathname: '/post/[id]', query: { id } }`."],"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-14T00:17:10.932Z"}