KieranBond / Short

Make that URL short
MIT License
1 stars 0 forks source link

Shortened URLs are not unique #1

Open KieranBond opened 1 year ago

KieranBond commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, the service will shorten a URL but has no guarantees that it is unique. This means that a shortened URL may correlate with more than one full-length URL - Overwriting the older URLs it was generated for.

Describe the solution you'd like It would be great to ensure that all URLs generated are unique - This would make the service a lot more useful.

Perhaps this can be done by checking if the shortened URL already exists and regenerating a shortened URL if so.

KieranBond commented 1 year ago

Temptation is to leave this as it is - It's a quirk, and it's a lot easier.