I am trying to set array query params with Vue-router, but I can't find a solution.
Currently the result is
http://localhost:8080/#/locations?page=1&categories=1&categories=2&categories=3
But my results should look like this
http://localhost:8080/#/locations?page=1&categories[]=1,2,3
This is my html
<router-link :to="{ path: 'locations', query: { page: 1, categories: [1,2,3] }}">
{{ $root.trans.translate("locations") }}
</router-link>
Can you please tell me what do I need to do so my URL will be printed out as I wanted. If you need any additional informations, please let me know and i will provide. Thank you!