kanak22 / Shorty

Shorty is a URL Shortener website built with EJS, Nodejs, MongoDB and Expressjs.

Home Page:https://shortyyyurl.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Links bugs

Ernest2026 opened this issue · comments

I tried shortening the same URL two times and it's giving me two different short URLs, have you considered checking the database to know if the long URL is already present, then you'll return the already shortened old URL

Secondly, this is more of a suggestion than an issue, I believe it'll be better if you don't display all the shortened links, maybe just display the one done by the user, because very soon your database might be having up to a thousand links and you won't want the user to be searching through those links...

I'd love to contribute to this but I've already done a URL shortener before, so I'll just check to see if there's any other project I can contribute to...

commented

Hey @Ernest2026 Thanks for the suggestion, I will work towards implementing these things :)

Hey @Ernest2026 Thanks for the suggestion, I will work towards implementing these things :)

You're welcome Kanak