Access to query urls params in boot #10646
-
Hi I need to access to a query url param in boot And this my boot `import { boot } from 'quasar/wrappers' export default boot(async ({ router }) => { but in the console it tells me that it is undefined What am I doing wrong? Thnks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
try |
Beta Was this translation helpful? Give feedback.
-
Here you can see what objects you can pass to the boot function.: What about using the |
Beta Was this translation helpful? Give feedback.
-
I dont agree the marked answer is the right answer. Sure
But, you still won't be able to get hold of query param. It seems it's too early to get that in boot file because |
Beta Was this translation helpful? Give feedback.
-
Ran into the same issue of trying to acces Will have a look at the suggestion of using |
Beta Was this translation helpful? Give feedback.
@roylans
Here you can see what objects you can pass to the boot function.:
https://quasar.dev/quasar-cli/boot-files#anatomy-of-a-boot-file
What about using the
urlPath
instead of therouter
object to access the query params? See here:https://quasar.dev/quasar-cli/boot-files#redirecting-to-another-page