Accessing route query params on the initial page load #990
Unanswered
vmihailenco
asked this question in
Q&A
Replies: 1 comment
-
Is the issue still exisit now? If now just mark this as answer, if so open a new issue. Probably related to header active plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like query params are dropped on the initial page load, for example, https://vuepress2.netlify.app/guide/getting-started.html?foo=bar is redirected to https://vuepress2.netlify.app/guide/getting-started.html and
route.query
is empty insetup
function.It only happens on the initial page load. Subsequently,
route.query
can be accessed without an issue.Are there any workarounds? I am using VuePress 2.0.0-beta.49 with Vite loader.
Beta Was this translation helpful? Give feedback.
All reactions