-
-
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
Regression: Router breaks navigation to custom home URL #3264
Comments
This was likely fixed in vitepress 1.0.0-rc.29. Can you try updating your deps. |
I've actually tested this on the latest rc.31 (in a branch). Just to make sure I've updated to 31 on the main branch and deployed — still the same issue. |
Try changing the |
Didn't work: Notice, that I'm using custom |
Is it still not working if you set it to The temporary workaround I can think of is this.🤔 |
Nope, still the same behavior. |
Use this in next version: logoLink: {
link: '/',
target: '_self'
}, It should work fine in dev too. |
Describe the bug
When using custom home page and
themeConfig.logoLink
is set to that paget, after any navigation happens in the docs, clicking the logo loads 404 page. See video below for a demo.vid.mp4
Reproduction
Not sure how reproduce this in a sandbox (the docs have to be deployed), but here are the sources of the demo above: https://github.com/naninovel/Documentation/tree/master/docs
Notice, that the bug only kicks in after some navigation happens in the docs; eg, it won't reproduce if you open the docs and immediately click the logo (in this case the home page will load correctly).
Expected behavior
Clicking on logo should load custom home page.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: