mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-05 07:08:31 +01:00
ResultsScreen's "Save results + book a call" CTA used a raw <a href=
"/register">, so a German visitor on /de/ who completed the overlay
landed on the English /register page instead of /de/register —
breaking language context exactly when the conversion is most fragile
(score on screen, intent peaking, decision being made).
Now reads the current locale from usePathname() — if the first
segment matches a routing.locales entry, the CTA targets
/${locale}${AUTH_ROUTES.register}; otherwise falls through to the
canonical AUTH_ROUTES.register (covers the portal /assessment context
where there's no locale prefix). Marked the file "use client"
explicitly since it now holds a hook.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>