-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
QueryParams are stripped #4399
Comments
This is expected, because Astro builds a static site by default your build does not have access to search params. Only a server can see the search params, since they are passed by the user when the user makes a request, and static sites are built ahead of time without knowing what search params a user might send. If you change |
Thanks @FredKSchott for your answer ! I resolved my problem by using a Vue component that can use |
sounds perfect! |
"Astro builds a static site by default your build does not have access to search params." This is a bug. Re-opened: #7489 |
I don't appear to be able to query the params from the server side either. |
if I set the config output to be |
What version of
astro
are you using?1.0.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Linux
Describe the Bug
When navigate to a page with querystring params, the
Astro.url
strip params andAstro.url.search
andAstro.url.searchParams
are empty.Did I misunderstand something or is it a bug ?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-nxwxap
Participation
The text was updated successfully, but these errors were encountered: