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
Add the rewrites to the config.mts
Create a folder named folder, add readme.md to it, and try to go to all 3 of these URLs:
localhost:5173/folder/
localhost:5173/folder/index.html
localhost:5173/folder/readme.html
Expected behavior
for /folder/index.md, /folder/readme.md, and /folder/ to lead to the same place.
System Info
╭─ cmd Lodestone main ≡ ~3 1m 44s 857ms⠀ 22.9.0 Zach@zPc-i1 3,00:55
╰─ npx envinfo --system --npmPackages vitepress --binaries --browsers
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
System:
OS: Windows 10 10.0.19044
CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
Memory: 4.64 GB / 31.93 GB
Binaries:
Node: 22.9.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.3 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0)
Internet Explorer: 11.0.19041.1202
npmPackages:
vitepress: ^1.4.2 => 1.4.2
Additional context
To me this seems like a bug but if it is not, and I'm doing it wrong, please redirect me to the correct place to get this answered/fixed.
Additionally I'm using vitepress-sidebar, which shows the Readme file and links to readme.html.
Describe the bug
Tried these:
Some work in docs:dev, but not when built.
Reproduction
Add the rewrites to the config.mts
Create a folder named
folder
, add readme.md to it, and try to go to all 3 of these URLs:Expected behavior
for /folder/index.md, /folder/readme.md, and /folder/ to lead to the same place.
System Info
Additional context
To me this seems like a bug but if it is not, and I'm doing it wrong, please redirect me to the correct place to get this answered/fixed.
Additionally I'm using vitepress-sidebar, which shows the Readme file and links to readme.html.
Validations
The text was updated successfully, but these errors were encountered: