Backend /api/v1/parcels/{cad}/analyze rejects URL-encoded cad with HTTP 400.
PR #351 originally fixed by decoding params.cad in the Client Component. A7
split (PR #356) refactored into Server Component + AnalysisPageContent and
forgot to carry the decode forward — every analysis page request through cad
URL bar (e.g. /site-finder/analysis/66%3A41%3A0204016%3A10) now passes the
encoded form to the hooks, which encodeURIComponent again, producing %253A,
which FastAPI decodes once to %3A, which the regex rejects.
Fix: decodeURIComponent(cadRaw) at the Server Component boundary (page.tsx)
in both generateMetadata and the page export. Downstream sees canonical
'66:41:0204016:10' and re-encodes exactly once when building API URLs.
|
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .eslintrc.json | ||
| Dockerfile | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| sentry.client.config.ts | ||
| sentry.edge.config.ts | ||
| sentry.server.config.ts | ||
| tsconfig.json | ||