Navnedia / Link-Shortener

A simple open-source and self-hosted URL shortener to make sharing easy! Built for personal use, and to explore new technologies.
https://minil.app
GNU Affero General Public License v3.0
1 stars 0 forks source link

Link Peeking #46

Open Navnedia opened 10 months ago

Navnedia commented 10 months ago

Apparently, bit.ly has a feature where you can add a + to the end of a shortened URL and it will launch a page that shows you where the link goes rather than actually launching it. I think it would be cool to add this feature for link peaking in the same way.

There could also be an endpoint /peek/{shortID} or /preview/{shortID}. If you don't supply a shortID in the url, then the page should give an input box to look up.

Additionally, there should be the same endpoints under /api/shortlink so you can get a JSON response.

Navnedia commented 10 months ago

For the sake of security and customization. There should also be a feature flag to enable this link peaking/safe mode as the default way of opening links across the entire application, or for each user.