\n\nIt looks ugly especially for Chinese.\n\n- The font family is not unified. It lacks the glyph \"\u003Cspan lang=zh>历\u003C/span>\", so a different (native Chinese) font is used there and the weight differs than the other han chracters.\n- The shape of \u003Cspan lang=zh>置\u003C/span> and \u003Cspan lang=zh>版\u003C/span> are incorrect. They are Japanese forms (\u003Cspan lang=ja>置\u003C/span> and \u003Cspan lang=ja>版\u003C/span>). **Note: their code points are the same!**\n\nIf you remove `system-ui`, you can get the intended glyph (look at \u003Cspan lang=zh>置\u003C/span> and \u003Cspan lang=zh>版\u003C/span>) even in a Japanese OS:\n\n\u003Cimg width=\"830\" height=\"98\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2bf99c89-a194-4d35-b328-23a0f3933258\" />\n\nA similar (vice versa) bug will occur if you visit a Japanese page that abuses `system-ui` with a Chinese OS.\n\nAlso, Yu Gothic UI is not optimized for long text, which VitePress is designed to serve. It is overly optimized for cramming labels and relatively short descriptions into narrow spaces.\nMicrosoft YaHei UI seems to have narrower line height than the normal Microsoft YaHei.\n\nCondition for font locale mismatch:\n\n- The page abuses `system-ui`\n- The language of the page is one of CJK but different from that of OS\n- The language of the page is not simplified Chinese or that of OS is not CJK\n\n### Describe the solution you'd like\n\nUse `sans-serif` instead of `system-ui`. If both are used, eliminate `system-ui`. `ui-sans-serif` is dedicated to macOS as for now.\n\nIt guarantees that it is the most readable font for the reader and matched to the OS language.\n\n`system-ui` is nothing but Apple's self-indulgence.\n\n### Describe alternatives you've considered\n\nStick to `system-ui`\n\nIt can look crappy for readers, contrary to Apple's intentions.\n\n### Additional context\n\nhttps://infinnie.github.io/blog/2017/systemui.html\nhttps://heistak.github.io/your-code-displays-japanese-wrong/\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [x] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],4946,"vuejs","vitepress","open","Prefer `sans-serif` to `system-ui` in default fonts","2025-09-15T08:03:08Z","https://github.com/vuejs/vitepress/issues/4946",0.70905817,{"description":3160,"labels":3161,"number":3165,"owner":3152,"repository":3153,"state":3166,"title":3167,"updated_at":3168,"url":3169,"score":3170},"### Describe the bug\n\nIf I try to set an asset document as featured link, destination gets rewritten as `.html`\n\n### Reproduction\n\n1. build a vitepress site\r\n2. create a page having `layout: home`\r\n3. add `features` attribute\r\n4. add a feature, like this \r\n```yml\r\nfeatures:\r\n - title: my feature\r\n details: my description\r\n link: ./myfile.pdf\r\n```\r\n5. see: broken link `./myfile.pdf.html`\n\n### Expected behavior\n\nlink should remain `./myfile.pdf`\n\n### System Info\n\n```Text\nSystem:\r\n OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)\r\n CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz\r\n Memory: 6.81 GB / 7.65 GB\r\n Container: Yes\r\n Shell: 5.1.16 - /bin/bash\r\n Binaries:\r\n Node: 21.0.0 - ~/.nvm/versions/node/v21.0.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v21.0.0/bin/yarn\r\n npm: 10.2.1 - ~/.nvm/versions/node/v21.0.0/bin/npm\r\n npmPackages:\r\n vitepress: ^1.0.0-rc.22 => 1.0.0-rc.22\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3162],{"name":3163,"color":3164},"theme","0754FB",3110,"closed","home's features link attribute can't accept assets as destination","2023-10-29T00:04:40Z","https://github.com/vuejs/vitepress/issues/3110",0.71801764,{"description":3172,"labels":3173,"number":3177,"owner":3152,"repository":3153,"state":3166,"title":3178,"updated_at":3179,"url":3180,"score":3181},"### Describe the bug\n\nHere is my configuration\r\nmy website: https://lark-base-team.github.io/js-sdk-docs/\r\n```\r\nimport { defineConfig } from 'vitepress'\r\nimport { getZhSideBar } from './zh-sidebar';\r\nimport { getEnSideBar } from './en-sidebar';\r\n\r\n\r\n// https://vitepress.dev/reference/site-config\r\nexport default defineConfig({\r\n lastUpdated: true,\r\n cleanUrls: true,\r\n base: '/js-sdk-docs/',\r\n themeConfig: {\r\n logo: '/logo.svg',\r\n search: {\r\n provider: 'local'\r\n },\r\n nav: [\r\n { text: 'API', link: '/zh/api/guide', activeMatch: 'zh/api' },\r\n ],\r\n },\r\n head: [\r\n ['link', { rel: 'icon', href: '/js-sdk-docs/logo.svg' }],\r\n ],\r\n title: 'Base JS SDK',\r\n description: 'Base JS SDK Docs',\r\n // sitemap: {\r\n // hostname: 'https://basejsapi.com',\r\n // },\r\n lang: 'zh',\r\n locales: {\r\n zh: {\r\n label: '中文',\r\n lang: 'zh',\r\n dir: '/zh',\r\n title: 'Base JS SDK',\r\n description: 'Base JS SDK Docs',\r\n themeConfig: {\r\n logo: '/logo.svg',\r\n search: {\r\n provider: 'local'\r\n },\r\n nav: [\r\n { text: 'API', link: '/zh/api/guide', activeMatch: 'zh/api' },\r\n ],\r\n\r\n sidebar: getZhSideBar(),\r\n },\r\n },\r\n en: {\r\n label: 'English',\r\n lang: 'en',\r\n dir: '/en',\r\n title: 'Base JS SDK',\r\n description: 'Base JS SDK Docs',\r\n themeConfig: {\r\n logo: '/logo.svg',\r\n search: {\r\n provider: 'local'\r\n },\r\n nav: [\r\n { text: 'API', link: '/en/api/guide.md' },\r\n ],\r\n sidebar: getEnSideBar(),\r\n },\r\n }\r\n },\r\n})\r\n\r\n```\n\n### Reproduction\n\nlike my config\n\n### Expected behavior\n\nI hope to demonstrate the ability to switch languages.\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 13.6\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 208.28 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.14.2 - ~/.nvm/versions/node/v18.14.2/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 9.5.0 - ~/.nvm/versions/node/v18.14.2/bin/npm\r\n pnpm: 8.7.4 - ~/.nvm/versions/node/v18.14.2/bin/pnpm\r\n Browsers:\r\n Chrome: 118.0.5993.70\r\n Safari: 17.0\r\n npmPackages:\r\n vitepress: 1.0.0-rc.10 => 1.0.0-rc.10\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3174],{"name":3175,"color":3176},"question","5D5FAE",3099,"The homepage lacks the ability to switch languages. ","2023-10-27T00:04:14Z","https://github.com/vuejs/vitepress/issues/3099",0.74335235,{"description":3183,"labels":3184,"number":3186,"owner":3152,"repository":3153,"state":3166,"title":3187,"updated_at":3188,"url":3189,"score":3190},"### Is your feature request related to a problem? Please describe.\r\n\r\nAdd a new option to `DefaultTheme.NavItem` to allow use a component.\r\n\r\nI'll try to send a PR tmr.\r\n\r\n/cc @brc-dd \r\n\r\n### Describe the solution you'd like\r\n\r\nReplace the content via `component::is`\r\n\r\n### Describe alternatives you've considered\r\n\r\nNone\r\n\r\n### Additional context\r\n\r\nCheck https://github.com/unocss/unocss/pull/3931\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[3185],{"name":3163,"color":3164},3998,"Allow use components inside navbar","2024-07-15T04:43:24Z","https://github.com/vuejs/vitepress/issues/3998",0.7433728,{"description":3192,"labels":3193,"number":3195,"owner":3152,"repository":3153,"state":3166,"title":3196,"updated_at":3197,"url":3198,"score":3199},"### Describe the bug\n\nThe button in the navigation for switching languages is not accessible for screen reader users.\r\n\r\n\r\n\r\nReviewing the HTML code reveals that property `aria-label` is not provided for the `button` element:\r\n\r\n```html\r\n\u003Cdiv class=\"VPFlyout VPNavBarTranslations translations\">\r\n \u003Cbutton type=\"button\" class=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\">\r\n \u003Cspan class=\"text\">\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"option-icon\" >\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"text-icon\">\r\n \u003C/span>\r\n \u003C/button>\r\n \u003Cdiv class=\"menu\">\r\n \u003Cdiv class=\"VPMenu\">\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">Deutsch\u003C/p>\r\n \u003Cdiv class=\"VPMenuLink\">\r\n \u003Ca class=\"VPLink link\" href=\"...\">English\u003C/a>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n\u003C/div>\r\n```\r\n\r\nAs far as I can tell, the reason for the missing `aria-label` property seems to be the missing `label` property for component `VPFlyout.vue` in the `VPNavBarTranslations.vue` component.\r\n\r\n```html\r\n\u003C!-- src/client/theme-default/components/VPNavBarTranslations.vue -->\r\n\u003Ctemplate>\r\n \u003CVPFlyout\r\n v-if=\"localeLinks.length && currentLang.label\"\r\n class=\"VPNavBarTranslations\"\r\n :icon=\"VPIconLanguages\"\r\n >\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">{{ currentLang.label }}\u003C/p>\r\n\r\n \u003Ctemplate v-for=\"locale in localeLinks\" :key=\"locale.link\">\r\n \u003CVPMenuLink :item=\"locale\" />\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nI'm planning to provide a PR for this issue, if you agree. But I might need some guidance in how to provide the changes properly.\r\n\r\nIt seems like setting property `label` for component `VPFlyout` should resolve the issue. However, this value should be configurable for different locales IMO.\r\n\n\n### Reproduction\n\nConfigure vitepress for 2 locales at least to enable the \"Switch Language\" button in the navbar. Using a screen reader, the button is not announced properly (e.g. \"popup button collapse\").\n\n### Expected behavior\n\nThe `aria-label` property of the `button` element of `VPFlyout` in `VPNavBarTranslations` should be set.\r\n\r\n```html\r\n\u003C!-- src/client/theme-default/components/VPNavBarTranslations.vue -->\r\n\u003Ctemplate>\r\n \u003CVPFlyout\r\n v-if=\"localeLinks.length && currentLang.label\"\r\n class=\"VPNavBarTranslations\"\r\n :icon=\"VPIconLanguages\"\r\n :label=\"Switch Language\"\r\n >\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">{{ currentLang.label }}\u003C/p>\r\n\r\n \u003Ctemplate v-for=\"locale in localeLinks\" :key=\"locale.link\">\r\n \u003CVPMenuLink :item=\"locale\" />\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nor\r\n\r\n```html\r\n\u003C!-- src/client/theme-default/components/VPNavBarTranslations.vue -->\r\n\u003Ctemplate>\r\n \u003CVPFlyout\r\n v-if=\"localeLinks.length && currentLang.label\"\r\n class=\"VPNavBarTranslations\"\r\n :icon=\"VPIconLanguages\"\r\n :label=\"currentLang.languageButtonAriaLabel\"\r\n >\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">{{ currentLang.label }}\u003C/p>\r\n\r\n \u003Ctemplate v-for=\"locale in localeLinks\" :key=\"locale.link\">\r\n \u003CVPMenuLink :item=\"locale\" />\r\n \u003C/template>\r\n \u003C/div>\r\n \u003C/VPFlyout>\r\n\u003C/template>\r\n```\r\n\r\nRelevant HTML code should look like this:\r\n\r\n```html\r\n\u003Cdiv class=\"VPFlyout VPNavBarTranslations translations\">\r\n \u003Cbutton type=\"button\" class=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\" aria-label=\"Switch Language\">\r\n \u003Cspan class=\"text\">\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"option-icon\" >\r\n \u003Csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" focusable=\"false\" class=\"text-icon\">\r\n \u003C/span>\r\n \u003C/button>\r\n \u003Cdiv class=\"menu\">\r\n \u003Cdiv class=\"VPMenu\">\r\n \u003Cdiv class=\"items\">\r\n \u003Cp class=\"title\">Deutsch\u003C/p>\r\n \u003Cdiv class=\"VPMenuLink\">\r\n \u003Ca class=\"VPLink link\" href=\"...\">English\u003C/a>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n \u003C/div>\r\n\u003C/div>\r\n```\n\n### System Info\n\n```shell\nSystem:\r\n OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)\r\n CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz\r\n Memory: 22.58 GB / 31.13 GB\r\n Container: Yes\r\n Shell: 5.0.17 - /bin/bash\r\n Binaries:\r\n Node: 18.14.0 - ~/.nvm/versions/node/v18.14.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v18.14.0/bin/yarn\r\n npm: 9.3.1 - ~/.nvm/versions/node/v18.14.0/bin/npm\r\n Browsers:\r\n Chrome: 110.0.5481.177\r\n Chromium: 110.0.5481.177\r\n Firefox: 110.0.1\n```\n\n\n### Additional context\n\nFollowing website explains the accessibility issue and possible solution in detail: https://dequeuniversity.com/rules/axe/4.4/button-name\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3194],{"name":3163,"color":3164},2021,"'Switch Language' Button does not have an accessible name","2023-03-16T00:04:26Z","https://github.com/vuejs/vitepress/issues/2021",0.75183547,{"description":3201,"labels":3202,"number":3203,"owner":3152,"repository":3153,"state":3166,"title":3204,"updated_at":3205,"url":3206,"score":3207},"### Describe the bug\n\nFor my simple documentation site with 2 languages (`en` and `de`) and search functionality, everything works perfectly except when I try to search in any locale but my root. My root locale is english and my 2nd locale is german, with it's markdown files in the `de` folder.\r\n\r\nThe search results on all german sites are always empty, no error in console.\n\n### Reproduction\n\nCreate a simple vitepress project with `srcDir` configured as `./src` and 2 markdown files in the `src` folder:\r\n- Content of `./src/index.md`\r\n```markdown\r\n# English\r\nThis is the english start page\r\n```\r\n- Content `./src/de/index.md`\r\n```markdown\r\n# Deutsch\r\nDas ist die deutsche Startseite\r\n```\r\n\r\nFinally configure vitepress like so:\r\n```ts\r\nimport { defineConfig } from 'vitepress'\r\n\r\nexport default defineConfig({\r\n\tsrcDir: './src',\r\n\tthemeConfig: {\r\n\t\tsearch: {\r\n\t\t\tprovider: 'local'\r\n\t\t}\r\n\t},\r\n\tlocales: {\r\n\t\troot: {\r\n\t\t\tlabel: 'English',\r\n\t\t\tlang: 'en'\r\n\t\t},\r\n\t\tde: {\r\n\t\t\tlabel: 'Deutsch',\r\n\t\t\tlang: 'de'\r\n\t\t}\r\n\t}\r\n})\r\n```\r\n\r\nNow searching on the root path works as it should:\r\n\u003Cimg width=\"898\" alt=\"english\" src=\"https://github.com/vuejs/vitepress/assets/6113939/249b19f5-3e19-43e4-8efe-7825c14c6448\">\r\n\r\nBut after navigating to the `/de` path, search stops delivering results:\r\n\u003Cimg width=\"899\" alt=\"german\" src=\"https://github.com/vuejs/vitepress/assets/6113939/1a90a94e-ebc3-420b-8fad-7cbf3cf6f7d0\">\r\n\n\n### Expected behavior\n\nLocal search should work the same no matter what language my site is on.\r\n\r\nIdeally searching in english should only deliver english results and searching in german should only bring german results :-)\r\nBut for now I would be happy if search works at all on my german pages.\n\n### System Info\n\n```sh\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz\r\n Memory: 19.84 GB / 31.93 GB\r\nBinaries:\r\n Node: 16.15.0 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 8.5.5 - C:\\Program Files\\nodejs\\npm.CMD\r\nBrowsers:\r\n Chrome: 113.0.5672.93\r\n Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.35)\r\n Internet Explorer: 11.0.22621.1\r\nnpmPackages:\r\n vitepress: ^1.0.0-alpha.75 => 1.0.0-alpha.75\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],2371,"Local search not working with i18n","2023-06-02T00:04:16Z","https://github.com/vuejs/vitepress/issues/2371",0.7568952,{"description":3209,"labels":3210,"number":3214,"owner":3152,"repository":3153,"state":3166,"title":3215,"updated_at":3216,"url":3217,"score":3218},"### Describe the bug\r\n\r\nFor example the page https://blog.jaggerwang.net/basicai-annotation-specification/ cannot access directly, but it's ok when add `index.html` suffix, and other pages did not have this problem, such as https://blog.jaggerwang.net/basicai-technical-architecture/ . So it seems related to the content of page?\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/3a69f282-d002-4194-b7ca-3b3075616883\">\r\n\r\nIt's ok when running in local dev and preview mode, and there is no error showing in the browser console or terminal console.\r\n\r\n\u003Cimg width=\"1512\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/82b87b50-f21a-430e-bb4e-893eb3bf9c52\">\r\n\r\n### Reproduction\r\n\r\nProject structure:\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d3f2d9e0-5dc8-4344-9674-61433c5a8322\">\r\n\r\nAliyun OSS config:\r\n\r\n\u003Cimg width=\"1306\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/d30acd18-d20c-44f2-a872-61bd981d0bcb\">\r\n\r\nBuid with GitHub actions, but the html is same with local build.\r\n\r\n\u003Cimg width=\"1624\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/1255011/f57bef3c-2d76-47c4-b18a-4b4a7b696771\">\r\n\r\n### Expected behavior\r\n\r\nNo error.\r\n\r\n### System Info\r\n\r\n```Text\r\nAliyun OSS\r\n```\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3211],{"name":3212,"color":3213},"bug: pending triage","e99695",3322,"Refresh some pages with error \"Hydration completed but contains mismatches.\" when deployed on Aliyun OSS.","2023-12-21T00:04:35Z","https://github.com/vuejs/vitepress/issues/3322",0.7587222,{"description":3220,"labels":3221,"number":3225,"owner":3152,"repository":3153,"state":3166,"title":3226,"updated_at":3227,"url":3228,"score":3229},"### Describe the bug\n\nIf I set Chinese in 'rewrites', it will not work normally. Check the source code and find that the reason is that the url in 'rewritesPlugin' is encoded and cannot match the incoming value.\r\n\r\n```ts\r\n// src/node/plugins/rewritesPlugin.ts\r\nexport const rewritesPlugin = (config: SiteConfig): Plugin => {\r\n return {\r\n name: 'vitepress:rewrites',\r\n configureServer(server) {\r\n // dev rewrite\r\n server.middlewares.use((req, _res, next) => {\r\n // this url is encoded\r\n if (req.url) {\r\n const page = req.url\r\n .replace(/[?#].*$/, '')\r\n .slice(config.site.base.length)\r\n // Value in 'rewrites.inv' not encoded\r\n if (config.rewrites.inv[page]) {\r\n req.url = req.url.replace(page, config.rewrites.inv[page]!)\r\n }\r\n }\r\n next()\r\n })\r\n }\r\n }\r\n}\r\n```\n\n### Reproduction\n\nUse Chinese as the value of the 'rewrites' configuration\n\n### Expected behavior\n\nThe value passed in can be recognized normally\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400F\r\n Memory: 7.62 GB / 15.81 GB\r\n Binaries:\r\n Node: 18.14.1 - ~\\AppData\\Local\\Volta\\tools\\image\\node\\18.14.1\\node.EXE\r\n npm: 9.3.1 - ~\\AppData\\Local\\Volta\\tools\\image\\node\\18.14.1\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.22621.1265.0), Chromium (110.0.1587.57)\r\n Internet Explorer: 11.0.22621.1\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3222],{"name":3223,"color":3224},"build","377ba8",2017,"Non-standard character set does not make 'rewrites' work","2023-03-18T00:04:21Z","https://github.com/vuejs/vitepress/issues/2017",0.7647748,{"description":3231,"labels":3232,"number":3233,"owner":3152,"repository":3153,"state":3166,"title":3234,"updated_at":3235,"url":3236,"score":3237},"Algolia Button Translation setting doesn't work at first load of homepage. \r\n\r\n**Reproduction**:\r\n\r\n(i) Enter [this test site](https://vite-press-test.vercel.app/), look at Algolia search button - It's in English (It should be Chinease under Translation setting).\r\n\r\n(ii) Click the Algolia search button, the button text would change to Chinese.\r\n\r\n_Originally posted by @hyp530 in https://github.com/vuejs/vitepress/issues/788#issuecomment-1157305253_\r\n\r\n---\r\n\r\n```ts\r\n// .vitepress/config.ts\r\n\r\nexport default {\r\n // ...\r\n themeConfig: {\r\n algolia: {\r\n // ...\r\n translations: {\r\n button: {\r\n buttonText: '搜索文档',\r\n buttonAriaLabel: '搜索文档',\r\n },\r\n },\r\n },\r\n },\r\n}\r\n```",[],796,"Algolia translations are not respected on initial load","2023-01-21T14:34:08Z","https://github.com/vuejs/vitepress/issues/796",0.76541394,{"description":3239,"labels":3240,"number":3244,"owner":3152,"repository":3153,"state":3166,"title":3245,"updated_at":3246,"url":3247,"score":3248},"### Describe the bug\n\nIf `base` option is set in `defineConfig()`, the 404 not found page will always show the root language. And the switch-language function also goes wrong. The `Take me home` button always takes me to root language home.\n\n### Reproduction\n\n1. Set some value to `base` option in `defineConfig()`.\n2. Switch the language to the one that is different from the root language.\n3. Go to a 404 not found page. The shown language will always be the root language.\n4. Try to switch the language in this 404 not found page, and it'll fail.\n5. Click `Take me home` button, and it'll take me to root language home.\n\n### Expected behavior\n\nThe switch-language function works properly; the 404 not found page shows the correct language; the `Take me home` button takes me to a correct language home.\n\n### System Info\n\n```Text\nSystem:\n OS: Windows 11 10.0.26100\n CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H\n Memory: 15.09 GB / 31.67 GB\n Binaries:\n Node: 24.4.0 - D:\\nodejs\\node.EXE\n npm: 11.4.2 - D:\\nodejs\\npm.CMD\n bun: 1.2.0 - ~\\.bun\\bin\\bun.EXE\n Browsers:\n Edge: Chromium (130.0.2849.46)\n Internet Explorer: 11.0.26100.1882\n npmPackages:\n vitepress: ^2.0.0-alpha.8 => 2.0.0-alpha.8\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3241],{"name":3242,"color":3243},"client","1AA9E5",4850,"404 not found page goes wrong if `base` option is set","2025-07-30T12:25:27Z","https://github.com/vuejs/vitepress/issues/4850",0.7668255,["Reactive",3250],{},["Set"],["ShallowReactive",3253],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fAYwg86hR1G2c5HUkgKduhQ12vwFSW7h6UYonDGcyeFA":-1},"/vuejs/vitepress/4927"]