NuxtN
Nuxt3y 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>
Was this page helpful?