Skip to content

Direct links to photos don't (always) work #4063

@ildyria

Description

@ildyria

Discussed in #4058

Originally posted by MissCatTrap January 31, 2026

Lychee version

v7.3.2

Did you check the latest Lychee version?

Yes, I did

Which PHP version are you using?

PHP 8.5

Detailed description of the problem

When using a direct link to view a specific image in an album, it does not always open the image and rather just show you the album view.

Also because your URL is for the image, and not the album, clicking on it to open it in full view does not work.

This issue does not occur for all images, and I believe it is linked to album size and it only occurs to me in my "SkyeTravels" album, which has 538 photos.

My latest photo in the album works however, this older one (25 Jun 2025) does not.

Tracked to being due to pagination limit preventing the photo data to be loaded so it can't be displayed.
Increasing the pagination limit is a soft fix but a more permanent solution needs to be applied:

  • loading pages selectively ? (figuring out which pages it belongs to? What about infinite scrolling...)
  • loading next pages until photo Id is found in the list? if photo is page 50 => loading 50 pages successively ? :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions