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
This behavior makes sense from a file and folder perspective, but not from an url perspective.
URLs should point to the same resource regardless of using a trailing slash or not
We actually attempted to fix this in #1575. But looks like I missed the opposite case, I'll create a PR soon. However, it is worth noting that the fix doesn't work in dev, it works only in prod, and whether to redirect from trailing slash to non-trailing slash, the choice is up to you, you'll need to configure your hosting provider accordingly. Also, page relative URLs (incl. assets if any) might break as it is a browser feature (will be resolved differently depending if one has trailing slash or not).
Describe the bug
Vitepress should check for a nested index.md if no file for the current url exists
Reproduction
test
index.md
file inside thetest
folderCall the URL http://localhost:5173/test
http://localhost:5173/test -> 404 page not found
http://localhost:5173/test/ -> index.md gets found
This behavior makes sense from a file and folder perspective, but not from an url perspective.
URLs should point to the same resource regardless of using a trailing slash or not
I thought this gets handled with the cleanUrls setting
https://vitepress.vuejs.org/config/app-configs#cleanurls-experimental
In my opinion
with-subfolders
should check for anindex.md
file andwithout-subfolders
should not.Expected behavior
If no file gets found for the currently called url vitepress should check if the called folder contains an index file
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: