mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 22:48:44 +01:00
German visitors hitting a broken /de/* URL now see "Seite nicht
gefunden" with a "Zurück zur Startseite" link routed back to /de
(not the global English "Page not found" → /dashboard which made no
sense for an unauth marketing visitor).
Implementation: app/[locale]/not-found.tsx + a [locale]/[...rest]
catch-all that calls notFound() (next-intl's recommended pattern —
without the catch-all, Next.js bubbles unmatched routes up to the
global root not-found.tsx). New notFound.{title,body,cta} keys in
all four locale message files. Verified via curl across de/en/fr/it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>