You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0c133d
Browse filesBrowse the repository at this point in the historyBrowse files
website: language switch goes to the same page, not the preface
The header language menu always linked to the other language's preface, so
switching language from chapter 7 or an About page dumped you at the
preface. Map to the equivalent page instead: swap the zh-cn<->en-us segment
for book chapters, /about/<->/about/en/ for About pages, and fall back to
the other language's landing for anything else. Drop so the
switch happens in place, and record the choice in localStorage so the root
auto-route honors it.
0 commit comments