fix(landing): Trade-In nav как внешний <a> на /trade-in/v2 (ChunkLoadError) #2365

Merged
bot-backend merged 1 commit from fix/landing-tradein-nav-external into main 2026-07-04 01:10:59 +00:00

1 commit

Author SHA1 Message Date
12cf59b276 fix(landing): render Trade-In nav item as external <a> to /trade-in/v2
All checks were successful
CI / changes (pull_request) Successful in 7s
CI Trade-In / changes (pull_request) Successful in 7s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Successful in 57s
CI / openapi-codegen-check (pull_request) Successful in 2m8s
/trade-in/** is proxied by Caddy to a separate tradein-frontend app
(basePath /trade-in, canonical /trade-in/v2). The internal <Link
href="/trade-in/"> made Next prefetch an RSC payload for a route this
app doesn't own -> Caddy returns the other app's 307 -> 'Failed to fetch
RSC payload for /trade-in' + ChunkLoadError in the console on every
landing visit. Add NavItem.external; external items render a plain <a>
(no prefetch/client-nav) pointing at the canonical /trade-in/v2. Pilot
ACL unaffected: /trade-in/v2 still matches the /trade-in/** allow glob
(test added).
2026-07-04 06:07:30 +05:00