thedevs-network / kutt

Free Modern URL Shortener.
https://kutt.it
MIT License
8.36k stars 1.08k forks source link

Not show the homepage with options if anonymous links disabled #656

Open djaffer opened 1 year ago

djaffer commented 1 year ago

Is there a way to not show the extra option on the homepage unless logged in. Just show by default the login page.

image

dkyeremeh commented 1 year ago

@poeti8 I would like to work on this one if it sounds good to you

poeti8 commented 1 year ago

@dkyeremeh please, go ahead.

dkyeremeh commented 1 year ago

@poeti8 PR created #661

delasource commented 1 year ago

i added this lines to my nginx loadbalancer (provided by caprover in my case) which redirects root-visitors to the login ui. Since it is a next app, this does not prevent from navigating there via the menu. but its a simple solution and does the trick.

    location = / {
        return 301 /login;
    }