- From: Cyril Auburtin <notifications@github.com>
- Date: Fri, 16 Apr 2021 08:40:26 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 April 2021 15:40:39 UTC
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