LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.41k stars 301 forks source link

[Enhancement] Pretty/custom URLs for public albums #1423

Open SvenMertin opened 2 years ago

SvenMertin commented 2 years ago

Hi there,

I don't know whether this is already a feature but I wasn't able to find such a function:

It would be very nice if you could share a gallery via private link which is customly set. Instead of a generated wild letter/number combination it would be nice to manually set the url within the share options (e.g. mylycheeserver.com/wedding1) .

Best regards Sven

kamil4 commented 2 years ago

I think this may have been suggested before, but no, Lychee doesn't currently support this feature.

Until recently, album IDs were numeric; the current "wild letter/number combination" (as you put it) is a new thing. I think @nagmat84, who is responsible for this change, should weigh in here: could an album ID be an arbitrary string now? I think our code assumes that IDs are of particular length?

If not, would a redirect feature work (i.e., you type in mylycheeserver.com/wedding1 and it gets redirected to the "wild" ID)? We have redirection in place from old numeric IDs to the new ones, so presumably something similar could be done for arbitrary, user-defined aliases.

In a pinch, this could probably be done outside of Lychee, using the http daemon's redirect feature, but I can see how doing it within Lychee would be more practical...

ildyria commented 2 years ago

If not, would a redirect feature work (i.e., you type in mylycheeserver.com/wedding1 and it gets redirected to the "wild" ID)? We have redirection in place from old numeric IDs to the new ones, so presumably something similar could be done for arbitrary, user-defined aliases.

I would go for that approach. There is already the r/ redirection. It could be extended.

cyberius0 commented 2 years ago

This is a very nice idea and great improvement for this great application. I would love to see it implemented!

ildyria commented 1 year ago

Todo:

Puupuls commented 7 months ago

This would be such nice functionality and allow more creators/professionals to use Lychee