Closed elringus closed 10 months ago
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 logoLink: "https://naninovel.com"
in your configuration to logoLink: "//naninovel.com"
or logoLink: "naninovel.com"
.
Try changing the
logoLink: "https://naninovel.com"
in your configuration tologoLink: "//naninovel.com"
orlogoLink: "naninovel.com"
.
Didn't work: naniovel.com
in logo link redirects to https://naninovel.com/guide/naninovel.com
when logo is clicked.
Notice, that I'm using custom ./docs/public/index.html
and don't have ./docs/index.md
. Previously it worked fine on deployment and in preview
, but in dev
it was returning 404 (which I didn't mind); I remember in some of the recent patches you've mentioned something about making router both in dev and preview work the same, may this is where it regressed (can't find the exact release to test).
Is it still not working if you set it to logoLink: "//naninovel.com"
?
The temporary workaround I can think of is this.🤔
Is it still not working if you set it to
logoLink: "//naninovel.com"
?
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.https://github.com/vuejs/vitepress/assets/2056864/69241914-58ab-4400-9013-7d9379cb4c14
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