jsurl icon indicating copy to clipboard operation
jsurl copied to clipboard

Chrome encodes ' in URL

Open wmertens opened this issue 8 years ago • 6 comments

Sometime recently, Chrome started encoding ' as %27 as soon as you send it :(

wmertens avatar Mar 28 '17 16:03 wmertens

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' 😞.

bjouhier avatar Mar 28 '17 19:03 bjouhier

Ok - I'm feeling a strong case for jsurl2 :)

wmertens avatar Mar 29 '17 07:03 wmertens

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

dkozar avatar Apr 29 '21 16:04 dkozar

I decided to fork and use . or - instead of '. Anyone see any issues with this?

tannerlinsley avatar Nov 17 '21 21:11 tannerlinsley

I was referencing what I found here: https://perishablepress.com/stop-using-unsafe-characters-in-urls/

tannerlinsley avatar Nov 17 '21 21:11 tannerlinsley

@tannerlinsley did you see my jsurl2 npm package?

wmertens avatar Nov 18 '21 10:11 wmertens