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•9mo 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-emeraldOP•9mo ago
That's readable. The problem is that the browsers convert the commas to %2C. I am all after the readability of the URL.