urlcat icon indicating copy to clipboard operation
urlcat copied to clipboard

Not compatible with Safari 10

Open comatory opened this issue 3 years ago • 3 comments

Describe the bug The path is incorrectly concatenated with stringified object.

To Reproduce

  1. Use Safari 10
  2. Navigate to http://incandescent-farmer.surge.sh/
  3. Result is /hello/world?%5Bobject=Object%5D=

Expected behavior Result should be /hello/world only

Screenshots Screenshot 2021-03-07 at 17 53 07

Desktop (please complete the following information):

  • OS: macOS Sierra
  • Safari
  • 10.1.2

comatory avatar Mar 07 '21 13:03 comatory

Useful library that I've used in the past. I have built my own parsers like this before and did not want to do it again. My current project is Javascript SPA that supports ES6. So I was bummed seeing this in Safari 10 which is perfectly capable of running my code. However basically the app is unusable since I'm using urlcat to construct URLs for my application router and data fetching, so basically everything fails because this string is being injected as query parameter everywhere (at least it looks like it).

comatory avatar Mar 07 '21 16:03 comatory

any update?

Anricx avatar Jun 10 '21 07:06 Anricx

Can this issue fix by Babel?

alfianandinugraha avatar Mar 21 '22 10:03 alfianandinugraha

I've just merged the PR, sorry for the huge delay everyone.

balazsbotond avatar Nov 12 '22 00:11 balazsbotond