Files
vitareba/components/Assessment
g-butandClaude Opus 4.7 e3edf4a4f2 fix(assessment): preserve marketing locale on the post-overlay register CTA
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>
2026-04-26 10:55:27 +02:00
..