szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.63k stars 160 forks source link

URL Shortening does not work #20

Closed Y0ngg4n closed 2 years ago

Y0ngg4n commented 2 years ago

If i short an URL by just simply pasting only the URL in my Pasta and opening it on a other device i just get the normal text and dont get redirected to the URL.

szabodanika commented 2 years ago

Welcome @Y0ngg4n and thanks for using MicroBin. After saving your URL as a paste, how did you try to open it? https://yourserver.com/url/fish-deer-viper should behave as a URL redirect while https://yourserver.com/pasta/fish-deer-viper will show the URL as text. When saving your URL, it will redirect you to the pasta endpoint to prevent you from getting instantly redirected to your URL.

Y0ngg4n commented 2 years ago

@szabodanika ah makes sense i have opened the pasta link. Maybe we could mention that in the readme? I dont think that this is obvious.

szabodanika commented 2 years ago

I agree with you, this should be clarified either in the readme or somewhere on the UI.

Y0ngg4n commented 2 years ago

Or maybe make a button to copy the shortened url.