-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Base paths (and links) not generating correctly for nested pages. #252
Comments
PS - this may be a links issue, for example:
I'm assuming that the intended behaviour is that links described without For now I'm inserting the base path into all links as a workaround. |
+1 The server is configured with a public base URL:/my-base-path/ |
It can be solved as follow: |
Describe the bug
See https://github.com/songololo/vitepress-debug for reproduction of this issue:
Run a dev server:
yarn docs:dev
.Note that the base-path
/my-base-path/
is set in the config at.vitepress/config.js
.The base path works for root files, i.e.
index.md
is served from/my-base-path/
.However, the base path is missing for nested files, i.e.
content/index.md
is served from/content/
andcontent/hello.md
is served from/content/hello.html
.This doesn't break things in development mode because the links are also missing the base path.
However, it breaks things in production because the links are missing the base path.
System Info
This happens for both my local system and for a github actions build.
The text was updated successfully, but these errors were encountered: