shuhanmirza / surelink

🔗 Safe short url for humans
https://surel.ink
GNU General Public License v3.0
7 stars 1 forks source link

[Feature Request] Re-using existing shortened URL #40

Open mehedi-shafi opened 1 year ago

mehedi-shafi commented 1 year ago

Right now, with the same URL passed multiple times will generate different shortened URLs.

e.g. Main URL: https://github.com/shuhanmirza/surelink

shortened URL 1: https://surel.ink/tSH81C shortened URL 2: https://surel.ink/ttib=e

Maybe it's worth re-using the previously generated shortened LINK for the public version?

shuhanmirza commented 1 year ago

First of all, thanks for your comment. Really appreciate your help.

Yes, you are right. We can optimize our table schema to avoid storing the same URL for different shortened URLs. However, we assumed this case is rare and released the previous version without addressing this. We will try to incorporate this feature in our next release.

Thanks again. Please feel free to raise issues and PRs.