Re: [whatwg/url] URLSearchParams inconsistent behavior with multiple same-name parameters leads to data loss on backend (Issue #889)

Voral left a comment (whatwg/url#889)

Yes, I understand this is not an urgent task. One way or another, everyone is solving this problem now, and it's not a complex task. On the other hand, it's quite common. And it would be nice to have a ready-made standard solution.

I thought about writing a universal wrapper for these purposes on top of URLSearchParams. I did a quick search for existing solutions. This library seems to be what I was looking for:
https://github.com/ljharb/qs

To be honest, I wouldn't have even thought about this problem if I hadn't come across a question from a beginner on one of the forums where URLSearchParams would have been very useful - if it didn't require additional learning of all these backend subtleties.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/889#issuecomment-3463516363
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/889/3463516363@github.com>

Received on Wednesday, 29 October 2025 19:35:59 UTC