bauripalash / fossurl

Your Own Url Shortner Without any fancy server side processing and support for custom url , which can even be hosted on GitHub Pages
MIT License
138 stars 46 forks source link

Inserting an URL without 'http(s)://' breaks functionality #1

Closed TheGuyDanish closed 6 years ago

TheGuyDanish commented 6 years ago

While testing, I noticed that putting an URL without the entire http://-preamble means the page won't forward to the shortened URL correctly.

For example: Inputting only 'cnn.com', I got this URL: https://fossurl.palash.tk/#o1snc2 - Going to it gives a 404 as it expands to https://fossurl.palash.tk/cnn.com

Perhaps do a check in JavaScript for the presence of the 'http://' or 'https://', and if it isn't there, add it?

bauripalash commented 6 years ago

Thank you for Letting me know the issue.

I spotted the issue and working on it.

bauripalash commented 6 years ago

@TheGuyDanish
i think the issue is fixed now with this commit 81f0e7eed55c7bf85b445455be2c6bf614c0b86c please check and close this issue if solved.

bauripalash commented 6 years ago

Issue is solved , clear your cache before testing.