-
Notifications
You must be signed in to change notification settings - Fork 920
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
[Bug report] When the page path includes hash
/ query
, the page will load a 404 error.
#1561
Comments
Just discovered a probably related bug. Using url query parameters like ?id=1 leads to a 404 as well. Previous versions worked like so: |
I have also noticed this issue, and I will fix it together in the PR #1562 . |
hash
, the page will load a 404 error.hash
/ query
, the page will load a 404 error.
…1562) Co-authored-by: Mister-Hope <[email protected]> Co-authored-by: meteorlxy <[email protected]>
Description
After upgrading from
rc.9
torc.11
, there was a change inbeforeResolve
where the path comparison switched fromto.path
toto.fullpath
.However,
to.fullpath
includes thehash
portion, which causes issues when the page is first loaded or when navigating to a page with ahash
in the path, resulting in the inability to match the correct route and leading to a404
error.Reproduction
Used Package Manager
pnpm
System Info
vuepress: 2.0.0-rc.11 => 2.0.0-rc.11
The text was updated successfully, but these errors were encountered: