Re: [whatwg/url] Proposal of .toString({ concise: true }) for nicer output with empty values (#469)

Regarding sub-delims, as pointed in comment above, since they don't require percent encoding (apart from `&` and `=` obviously), a search string like `x=foo:1,bar:2` is valid

So it'd be really good to have an option to not encode them, to make search params more user-friendly

I had to resort to do this:

```js
history.push(`${location.pathname}?${Object.entries({ ...query, ...q }).map(([k, v]) => `${k}=${v}`).join('&')}`); // new URLSearchParams() encodes , and : which is not necessary https://tools.ietf.org/html/rfc3986#appendix-A
```

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

Received on Friday, 16 April 2021 15:40:39 UTC