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

Closed
opened 2026-02-16 18:11:32 -05:00 by yindo · 1 comment
Owner

Originally created by @Seungjun0906 on GitHub (Feb 11, 2026).

Originally assigned to: @jayair on GitHub.

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

Originally created by @Seungjun0906 on GitHub (Feb 11, 2026). Originally assigned to: @jayair on GitHub. ### 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_
yindo added the bugdocs labels 2026-02-16 18:11:32 -05:00
yindo closed this issue 2026-02-16 18:11:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue might be a duplicate of an existing issue. Please check:

  • #13078: [Website] Docs language switcher fails to update content to English - describes the same language selection reversion issue

Both issues report the same core problem where selecting English doesn't persist and reverts to a previously set non-English locale. Consolidating into one issue would help track the fix more effectively.

@github-actions[bot] commented on GitHub (Feb 11, 2026): This issue might be a duplicate of an existing issue. Please check: - #13078: [Website] Docs language switcher fails to update content to English - describes the same language selection reversion issue Both issues report the same core problem where selecting English doesn't persist and reverts to a previously set non-English locale. Consolidating into one issue would help track the fix more effectively.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9062