\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.",[3210],{"name":3211,"color":3212},"need more info","bdbefc",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.70570505,{"description":3219,"labels":3220,"number":3222,"owner":3149,"repository":3150,"state":3151,"title":3223,"updated_at":3224,"url":3225,"score":3226},"### Describe the bug\n\nI'geting a 404 error when I refresh a page deeper than the home ( '/' ) WHEN it is deployed. local test works fine. I have seen some closed issue describing the same issue but no clear workaround that I can follow was shown.\r\n\r\n\n\n### Reproduction\n\n- deploy a vite press app \r\n- Navigate to any link but the home page\r\n- refresh the page\n\n### Expected behavior\n\nRefresh should not get 404 error\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 77.77 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 18.16.0 - /usr/local/bin/node\r\n npm: 9.7.2 - /usr/local/bin/npm\r\n pnpm: 8.6.12 - /usr/local/bin/pnpm\r\n Browsers:\r\n Brave Browser: 116.1.57.53\r\n Chrome: 116.0.5845.110\r\n Edge: 116.0.1938.62\r\n Safari: 16.5.2\n```\n\n\n### Additional context\n\nhere is my config file :\r\nimport { defineConfig } from 'vitepress'\r\n\r\n// https://vitepress.dev/reference/site-config \r\n// https://vitepress.dev/reference/default-theme-config\r\n\r\nexport default defineConfig({\r\n title: \"Weft Finance\",\r\n description: \"Lend and Borrow on Radix\",\r\n\r\n lastUpdated: true,\r\n cleanUrls: true,\r\n\r\n head: [\r\n ['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicons/favicon.svg' }],\r\n ['link', { rel: 'icon', type: 'image/png', href: '/favicons/favicon.png' }],\r\n ],\r\n\r\n\r\n themeConfig: {\r\n\r\n\r\n logo: '/weft-logo.png',\r\n\r\n editLink: {\r\n pattern: 'https://github.com/WeftFinance/weft_docs/tree/main/content/:path',\r\n text: 'Edit this page on GitHub'\r\n },\r\n\r\n footer: {\r\n message: 'Released under the MIT License.',\r\n copyright: 'Copyright © 2023-present Weft Finance'\r\n },\r\n\r\n nav: [\r\n { text: 'Home', link: '/' },\r\n { text: 'Overview', link: '/overview' },\r\n ],\r\n\r\n\r\n sidebar: [\r\n {\r\n text: 'Weft Overview',\r\n link: '/overview',\r\n items: [\r\n {\r\n text: 'Description and core concepts',\r\n link: '/description'\r\n },\r\n {\r\n text: 'On-ledger components',\r\n link: '/components'\r\n },\r\n {\r\n text: 'Lending and Borrowing Operations',\r\n link: '/operations'\r\n },\r\n ]\r\n },\r\n {\r\n text: 'The WEFT Token',\r\n link: '/token',\r\n },\r\n {\r\n text: 'Revenue and Insurance module',\r\n link: '/revenue',\r\n },\r\n {\r\n text: 'Roadmap',\r\n link: '/roadmap',\r\n }\r\n\r\n ],\r\n\r\n socialLinks: [\r\n { icon: 'twitter', link: 'https://twitter.com/Weft_Finance' },\r\n { icon: 'github', link: 'https://github.com/WeftFinance' }\r\n ]\r\n }\r\n})\r\n\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.",[3221],{"name":3211,"color":3212},2869,"Error 404 on refresh","2023-09-05T00:04:07Z","https://github.com/vuejs/vitepress/issues/2869",0.70598906,{"description":3228,"labels":3229,"number":3230,"owner":3149,"repository":3150,"state":3151,"title":3231,"updated_at":3232,"url":3233,"score":3234},"### 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.70614874,{"description":3236,"labels":3237,"number":217,"owner":3149,"repository":3150,"state":3151,"title":3239,"updated_at":3240,"url":3241,"score":3242},"**Describe the bug**\r\nThe Guide's [Configuration page] refers to [https://vitepress.vuejs.org/config/](https://vitepress.vuejs.org/config/) but that page gives a 404. \r\n\r\nThis should likely be `https://vitepress.vuejs.org/config/basics` which can be reached from the top navigation bar.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n- visit https://vitepress.vuejs.org/guide/configuration.html\r\n\r\n**Expected behavior**\r\n\r\nI would have done a PR but not sure, whether the URL without `basics` is expected to work (different from changing the URL itself by appending that string).\r\n\r\n**System Info**\r\n- vitepress version: online docs\r\n\r\n**Additional context**\r\n",[3238],{"name":3181,"color":3182},"Config page has a missing link","2023-01-21T16:24:13Z","https://github.com/vuejs/vitepress/issues/160",0.7089669,["Reactive",3244],{},["Set"],["ShallowReactive",3247],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f_nOSO3wGEF1vuAb23ANo_5Je7qVYb4ZIDVwz30DBl20":-1},"/vuejs/vitepress/458"]