T
TanStack9mo ago
exotic-emerald

multiple search params with same keys

Hi. How do we do multiple search params like this with same keys for a category filter component I am building? ?category=4&category=3
2 Replies
conscious-sapphire
conscious-sapphire9mo ago
Not sure if it's possible but it's not really idiomatic. I'd recommend just passing something like ?categories=4,3 and parse that.
exotic-emerald
exotic-emeraldOP9mo ago
That's readable. The problem is that the browsers convert the commas to %2C. I am all after the readability of the URL.

Did you find this page helpful?