Skip to content

fix: add i18n lang segment to legal routes#62

Merged
wab merged 2 commits intomainfrom
fix/legal-routes-i18n
Mar 11, 2026
Merged

fix: add i18n lang segment to legal routes#62
wab merged 2 commits intomainfrom
fix/legal-routes-i18n

Conversation

@wab
Copy link
Collaborator

@wab wab commented Mar 11, 2026

Summary

  • Legal pages (CGU, privacy policy) were missing the ($lang) route segment
  • URLs like /fr/legal/confidentialite returned 404 in production
  • Renamed legal.tsxlegal.($lang).tsx and legal.$slug.tsxlegal.($lang).$slug.tsx

Test plan

  • Verify /legal/cgu and /legal/confidentialite still work (no lang prefix)
  • Verify /fr/legal/cgu and /fr/legal/confidentialite now resolve correctly
  • Verify /en/legal/cgu works if English content exists

Legal pages (CGU, privacy policy) were missing the ($lang) route
segment, causing 404 errors on /fr/legal/* URLs.
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ocobo Ready Ready Preview Mar 11, 2026 4:42pm

Legal pages (CGU, privacy policy) were not nested under the _main
layout with ($lang) segment, causing 404 on /fr/legal/* URLs.
Moved routes to _main.($lang).legal.* and removed redundant
LayoutMain wrapper since _main already provides it.
@wab wab merged commit 3e5a190 into main Mar 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant