jsurl
jsurl copied to clipboard
Chrome encodes ' in URL
Sometime recently, Chrome started encoding ' as %27 as soon as you send it :(
This is a know (and unfortunate) issue. See #11.
At the time it looked like ' would not need encoding but then browsers started to encode it to solve a security issue. If I had know that earlier, I would have chosen " rather then' 😞.
Ok - I'm feeling a strong case for jsurl2 :)
Ok - I'm feeling a strong case for jsurl2 :)
Or jsonurl-js: https://github.com/jsonurl/jsonurl-js 😄
But the apostrophe problem is the same: https://github.com/jsonurl/jsonurl-js/issues/96
I decided to fork and use . or - instead of '. Anyone see any issues with this?
I was referencing what I found here: https://perishablepress.com/stop-using-unsafe-characters-in-urls/
@tannerlinsley did you see my jsurl2 npm package?