Date: 2026-01-11 02:11 Summary: Updated home tool card links to explicit language-prefixed paths when switching to English.
[question] 首页下拉点击切换为英文后,工具内容链接没有随之切换为英文
[try to solve]
Fixed home tool-card link generation: multilingual-routed tools (Website Headers) use explicit language prefixes (e.g. English /en/tools/website-headers) so the /en/ home opens the English tool page instead of the default-lang path. Markdown → HTML keeps its real static path /tools/markdown-to-html.html.
[actions]
- Updated:
scripts/site/components/content-home.mjs - Ran:
env SITE_LANGS=zh,en SITE_DEFAULT_LANG=en npm run build:site