/docs/en returns 404 in production and English selection reverts to previous non-English locale

Description

This issue is not limited to Korean.

In production docs, if oc_locale is set to any non-English locale (for example: ko, ja, fr, etc.), selecting English from the language selector does not stay in English.

Also, /docs/en returns 404 in production.

Expected behavior

  • /docs/en should resolve to English docs (or redirect to /docs) consistently.
  • Selecting English should persist English and not revert to a previous non-English locale.

Actual behavior

  • /docs/en returns 404 in production.
  • English selection can be overridden by existing non-English locale state (via oc_locale).

This appears to involve production routing for /docs/en and locale/cookie synchronization during docs root/alias navigation.

Plugins

No response

OpenCode version

No response

Steps to reproduce

Case 1: /docs/en returns 404

  1. Open https://opencode.ai/docs/en.
  2. Observe that it returns 404.

Case 2: English selection reverts to previous non-English locale

  1. Ensure oc_locale is set to any non-English locale (e.g. ko, ja, fr, ...).
  2. Open https://opencode.ai/docs (or any docs page).
  3. Use the language selector at the bottom and select English.
  4. Observe that navigation goes to root docs path, but docs are shown again in the previous non-English locale.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response