I want to redirect my users to another page and send a list of parameters using URL query parameters. Below an example of the list I would like to send:
foo = ["asd", "qwe"]
This is what I have tried so far but isn’t working:
wixLocation.to("/stores/products?foo=asd&foo=qwe");
When I try this, the query parameters get overridden and only one parameter is sent instead. This is the link that my user gets redirected to: “/stores/products?foo=asd”.
So, my question is, how can I pass a list of parameters using query parameters?