mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 06:48:03 +01:00
Same class of bug as the prior ResultsScreen fix, three more places:
1. components/sections/Nav.tsx — the marketing "Sign in" link used
NextLink (raw next/link) so /de/ → /login (English) instead of
/de/login. Switched to the locale-aware Link (next-intl).
2 & 3. app/[locale]/(auth)/login & register — both pages imported
useRouter from next/navigation (raw) but useSearchParams + Link
from next/navigation + @/lib/i18n/navigation respectively. Inside
/de/login, router.push(`${AUTH_ROUTES.login}?returnTo=...`)
pushed to /login (English) on the post-register sign-in nudge.
Switched useRouter to @/lib/i18n/navigation so it stays inside
/de/.
4. app/[locale]/(auth)/reset-password — same useRouter swap so the
post-reset push to /login keeps the visitor on /de/login.
Together with c8a430d (auth-page footer tagline), 1519877 (per-locale
title/description), c6dff54 (per-locale OG image), 5d77d3a (<html lang>
from URL not cookie) and the ResultsScreen fix, the marketing-site
visitor's chosen locale now survives every step from /de/ through to
account creation without dropping into English.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>