urlcat
urlcat copied to clipboard
Not compatible with Safari 10
Describe the bug The path is incorrectly concatenated with stringified object.
To Reproduce
- Use Safari 10
- Navigate to http://incandescent-farmer.surge.sh/
- Result is
/hello/world?%5Bobject=Object%5D=
Expected behavior
Result should be /hello/world
only
Screenshots
Desktop (please complete the following information):
- OS: macOS Sierra
- Safari
- 10.1.2
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).
any update?
Can this issue fix by Babel?
I've just merged the PR, sorry for the huge delay everyone.