winhtaikaung / react-tiny-link

Convert your links into rich previews
https://winhtaikaung.github.io/react-tiny-link
259 stars 48 forks source link

when putting an url without http:// it crashes #80

Closed handrei closed 4 years ago

handrei commented 4 years ago

hello, I'm using this library the latest version and when I tried to put a link without HTTP:// it crashed with error: TypeError Failed to construct 'URL': Invalid URL i also tried on the sandbox and it's with the same error

anyone had this issue?

winhtaikaung commented 4 years ago

its expected behavior so you may need to provide correct URL format.

winhtaikaung commented 4 years ago

I will close this issue @handrei Please feel free to reopen new issue if you still facing the issue after using proper URL.