Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skeith22's avatar

Vue this.$route is NOT picking up other query parameters

I just noticed there is something wrong with Vue.

when you console.log this this.$route.fullPath. this is the result

users?page=3&per_page=15&name=&display_name=&order_by=desc

BUT when you console this.$route.query this only contains { display_name: "", name: "" }

page, per_page, and order_by is not in the query object.

0 likes
3 replies
gitwithravish's avatar

the only pattern i can see here is that only those values are being returned that has no values. Try debugging. Just add some values to display_name and name and then console log this.$route.fullPath and see whats the result. @skeith22

skeith22's avatar

I added values to name and display_name same results only the 2 of them were picked up by this.$route.query.

skeith22's avatar
skeith22
OP
Best Answer
Level 22

I found the issue, it was my mistake. looks like I was deleting the properties of it on another component. it took me quite a while to find it because there are too many component files.

Please or to participate in this conversation.