Skip to content
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

fix: custom home page with setting logoLink leads to 404 page #3271

Closed
wants to merge 3 commits into from

Conversation

zonemeen
Copy link
Collaborator

temporary fix for #3264

We can circumvent this case in the router, which is that when using a custom homepage and themeConfig.logoLink is set to that custom homepage, clicking on the logo does not try to load the vitepress-generated homepage, but instead jumps directly to the custom homepage.

@elringus
Copy link

elringus commented Dec 31, 2023

I've tried this change and (while it fixes the logo navigation) page now reloads on every navigation (including inside the app), but weirdly only on Firefox (Chrome is fine). Any idea why Firefox may behave like that? And this only happen when deployed (not reproducing locally, even on build->preview).

@elringus
Copy link

Actually, it happens on all browsers, just was more noticeable on Firefox. Hopefully, there is a better solution to this issue, as reloading the page on local navigation significantly affects UX.

@elringus
Copy link

Nevermind, I've just messed the regex. The fix is working. Sorry for the noise.

@brc-dd brc-dd closed this in 6c89943 Dec 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants