-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visiting /docs
results /docs.html
then 404 if base
is set as /docs/
#852
Comments
vitepress/src/client/app/router.ts Lines 45 to 48 in 00fe809
|
This is expected. |
I think |
When people use The behavior you encounter is exactly as expected. |
Sorry I don't quite understand, what is the issue with GitHub Pages with |
Regarding this I've another doubt. That /docs is technically considered outside the base. Then why is our router intercepting such a link in first place? 👀 What happens when you reload that /docs.html? It should be giving an actual 404 IG, not the VP one. (in production) |
@brc-dd It results 404 as the screen shot from VP. |
And which ever 404 the server response, it depends on the user's server setting, |
Just to add some color here, VuePress handles this the way to OP is requesting. Leaving out the trailing slash resolves the url to directory This is probably more particularly important for nested documentation pages like |
+1 to this. And add my two cents here:
I would visit https://example.com/docs, yeah, it works. BUT the link of the site name is |
BTW, the extra |
Describe the bug
Reproduction
https://github.com/JounQin/test/tree/vitepress
yarn docs:build --base /docs/ && yarn docs:serve --base /docs/
Expected behavior
http://localhost:8000/docs
(Without ending slash) should work same ashttp://localhost:8000/docs/
(With ending slash)System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: