N
Nuxt2y ago
Mads

Arrays in query params

Hi! Is there a simple way to navigate to a link with query params as array? e.g. this link results in /checkout?product_id=5&equipment_ids=30&equipment_ids=31 Which is fine for me, as I can easily get it working. However, Facebook does not like this and strips away the duplicate equipments_ids. It always keeps the last one.
<NuxtLink
:to="{
path: '/checkout',
query: {
product_id: params.product_id,
equipment_ids: [30, 31],
},
}"
>
Click me
</NuxtLink>
<NuxtLink
:to="{
path: '/checkout',
query: {
product_id: params.product_id,
equipment_ids: [30, 31],
},
}"
>
Click me
</NuxtLink>
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server