App bridge not relaying duplicate query strings correctly

I’m trying to store filter parameters in the URL’s query string. This works well until I reload the page. When App Bridge initializes it seemingly removes any duplicate keys, despite this being valid.

E.g., my filter contains a list of staff member ids:

?staffMemberIds=1&staffMemberIds=2&staffMemberIds=3

Upon reloading the page, this gets turned into ?staffMemberIds=3

My temporary work around is to simply use a separator in one query parameter.

Hey Tim,

Connecting with the App Bridge team on this now to identify if this is a bug and what their recommendation is.

Have you tried adding brackets ([]), like this: staffMemeberIds[]=1&staffMemeberIds[]=2

Hi @Liam-Shopify, adding [] indeed works, thanks for the workaround! Was this the recommendation from the App Bridge team, or will names without the [] suffix be supported in the future too?