\n\u003Cimg width=\"1890\" height=\"470\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1b63e5fd-3d4d-4c14-8861-271409800222\" />\n\u003Cimg width=\"1420\" height=\"215\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1d036d80-1d0f-445e-a799-9763e9b5580e\" />\n\n\n\n### Reproduction\n\nno\n\n### Expected behavior\n\nCan add public path normally\n\n### System Info\n\n```Text\nwindows11 ,chrome latest\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.",[3199],{"name":3168,"color":3169},4886,"Document deployment does not support the base option (public path) of the VitePress configuration.?","2025-08-06T06:36:15Z","https://github.com/vuejs/vitepress/issues/4886",0.6613354,{"description":3206,"labels":3207,"number":3209,"owner":3146,"repository":3147,"state":3148,"title":3210,"updated_at":3211,"url":3212,"score":3213},"### Describe the bug\n\n\r\n\r\n\r\nsame happens when there's another `base: '/section2/',` in sidebar\n\n### Reproduction\n\nconfig:\r\n```ts\r\nexport default defineConfig({\r\n\r\n...\r\n\r\n sidebar: [\r\n {\r\n base: '/section/',\r\n items: [\r\n { text: 'First', link: '/first' },\r\n { text: 'Second', link: '/second' },\r\n { text: 'Third', link: '/third' },\r\n ]\r\n },\r\n ],\r\n\r\n...\r\n```\r\n\r\nfolder structure:\r\n\r\n\r\n\n\n### Expected behavior\n\n\r\n\r\n(like without the base link and md files stored in parent folder)\n\n### System Info\n\n```Text\nrc20, windows\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.",[3208],{"name":3189,"color":3190},3010,"bottom page navigation link always directs to first page when using base URLs for sidebar","2023-10-02T00:04:34Z","https://github.com/vuejs/vitepress/issues/3010",0.67134434,{"description":3215,"labels":3216,"number":3218,"owner":3146,"repository":3147,"state":3148,"title":3219,"updated_at":3220,"url":3221,"score":3222},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug**\r\nsetting base path will make the sidebar blank.\r\n\r\n**To Reproduce**\r\nin .vitepress/config.js:\r\nadd base path setting\r\n\r\n**Expected behavior**\r\nnormal display\r\n\r\n**System Info**\r\n- vitepress version: 0.12.0\r\n- vite version: 2.0.0-beta.50\r\n- Node version: v15.2.1\r\n- OS version: macOS 11.2\r\n\r\n**Additional context**\r\nyou can see there: https://assone.github.io/Note/programing/\r\n",[3217],{"name":3189,"color":3190},242,"setting base path will make the sidebar blank","2023-01-21T16:22:30Z","https://github.com/vuejs/vitepress/issues/242",0.6714895,{"description":3224,"labels":3225,"number":3227,"owner":3146,"repository":3147,"state":3148,"title":3228,"updated_at":3229,"url":3230,"score":3231},"### Is your feature request related to a problem? Please describe.\r\n\r\nWhen reading the docs of VitePress from beginning to end, I found that `base` is mentioned the first time in https://vitepress.vuejs.org/guide/deploying.html#github-pages , I didn't know what it was for until I found https://vitepress.vuejs.org/config/app-configs.html#base .\r\n\r\n### Describe the solution you'd like\r\n\r\nIt would be nice to briefly describe what `base` does in the [Deploying](https://vitepress.vuejs.org/guide/deploying.html) section, or at least add a link to the [App Configs](https://vitepress.vuejs.org/config/app-configs.html#base) page.\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\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.vuejs.org).\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.",[3226],{"name":3179,"color":3180},789,"Explanation of `base`","2023-01-21T14:32:36Z","https://github.com/vuejs/vitepress/issues/789",0.6715532,{"description":3233,"labels":3234,"number":3235,"owner":3146,"repository":3147,"state":3148,"title":3236,"updated_at":3237,"url":3238,"score":3239},"### Describe the bug\n\nI want to use `VitePress` to build a blog, I want to find current post base on route, so i have below code:\r\n```\r\n\tfunction findCurrentIndex() {\r\n\t\t\r\n\t\tconst result = posts.findIndex((p) => p.url.includes(route.path))\r\n\t\tif (result === -1) console.error(`blog post missing: ${route.path}`)\r\n\t\treturn result\r\n\t}\r\n\r\n```\r\nthis works fine, when we do not enable rewrites or set `base` configuration, because url of post comes from `createContentLoader` do not add `base` or prefix, so I wrap the url with `withBase` in many places, could anyone explain why `createContentLoader ` not return the 'correct' url base on site configuration or rewrites rules? \r\nI add `withBase` inside loader as well, but It doesn't work\r\n```\r\nexport default createContentLoader(pattern, {\r\n\texcerpt: '\u003C!--more-->',\r\n\ttransform(raw): Post[] {\r\n\t\treturn raw\r\n\t\t\t.map(({ url, frontmatter, excerpt }) => ({\r\n\t\t\t\ttitle: frontmatter.title,\r\n\t\t\t\tcategories: frontmatter?.categories ?? [],\r\n\t\t\t\tdescription: excerpt,\r\n\t\t\t\ttags: frontmatter.tags ?? [],\r\n\t\t\t\turl: withBase(url), // in here will got error message: does not provide an export named 'withBase'\r\n\t\t\t\texcerpt,\r\n\t\t\t\tdate: formatDate(frontmatter.date),\r\n\t\t\t}))\r\n\t\t\t.sort((a, b) => b.date.time - a.date.time)\r\n\t},\r\n})\r\n```\n\n### Reproduction\n\nas describe\n\n### Expected behavior\n\ncreateContentLoader return correct url\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.22621\r\n CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz\r\n Memory: 19.90 GB / 31.96 GB\r\n Binaries:\r\n Node: 18.17.1 - C:\\Program Files\\nodejs\\node.EXE\r\n npm: 9.6.7 - C:\\Program Files\\nodejs\\npm.CMD\r\n pnpm: 8.7.4 - ~\\AppData\\Roaming\\npm\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (117.0.2045.60)\r\n Internet Explorer: 11.0.22621.1\r\n npmPackages:\r\n vitepress: 1.0.0-rc.20 => 1.0.0-rc.20\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.",[],3063,"createContentLoader do not return correct url of post","2023-10-24T00:04:13Z","https://github.com/vuejs/vitepress/issues/3063",0.67235154,["Reactive",3241],{},["Set"],["ShallowReactive",3244],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fRMzoLYIMOquGM8tHFBfh1SV-rBJvJNGMpT8alFxjOBs":-1},"/vuejs/vitepress/2339"]