Description
This is a follow-up to #13108.
I originally reported this issue in #13108, and a fix was merged, but the problem is still reproducible in production.
So I am opening this issue to track the remaining behavior that was not resolved.
This issue is not limited to Korean.
If oc_locale is set to any non-English locale (for example: ko, ja, fr, etc.), selecting English from the language selector may not stay in English.
Also, /docs/en still returns 404 in production.
Expected behavior
/docs/en should resolve to English docs consistently (or redirect to canonical English docs path, e.g. /docs).
- Selecting English should persist English and should not revert to a previous non-English locale.
/docs/en/* paths should also resolve consistently for English docs.
Actual behavior
/docs/en returns 404 in production.
- English selection can be overridden by existing non-English locale state (
oc_locale).
- In practice, English does not remain sticky in some docs navigation flows.
Reproduction (production)
- Set
oc_locale to a non-English locale (e.g. ko).
- Open
https://opencode.ai/docs.
- Try either:
- Directly navigate to
https://opencode.ai/docs/en, or
- Select English from the language selector in docs.
- Observe current behavior.
Observed result
/docs/en returns 404.
- English selection may fall back to the previous non-English locale.
Notes
Likely related to docs path canonicalization for /docs/en* and locale cookie synchronization in docs proxy routing.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
This is a follow-up to #13108.
I originally reported this issue in #13108, and a fix was merged, but the problem is still reproducible in production.
So I am opening this issue to track the remaining behavior that was not resolved.
This issue is not limited to Korean.
If
oc_localeis set to any non-English locale (for example:ko,ja,fr, etc.), selecting English from the language selector may not stay in English.Also,
/docs/enstill returns 404 in production.Expected behavior
/docs/enshould resolve to English docs consistently (or redirect to canonical English docs path, e.g./docs)./docs/en/*paths should also resolve consistently for English docs.Actual behavior
/docs/enreturns 404 in production.oc_locale).Reproduction (production)
oc_localeto a non-English locale (e.g.ko).https://opencode.ai/docs.https://opencode.ai/docs/en, orObserved result
/docs/enreturns 404.Notes
Likely related to docs path canonicalization for
/docs/en*and locale cookie synchronization in docs proxy routing.Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response