mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 06:28:18 +01:00
bc866de55df03fe00d00a401cd6fc7df2008944f
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>
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Languages
TypeScript
89.1%
CSS
10.2%
JavaScript
0.7%