Leaving a session folder returns you to where you were

The photo shoot gallery now remembers the page you were on when you opened a multi-product session, and never leaves you looking at an empty grid.

In the photo shoot gallery, opening a multi-product session folder and then clicking "Back to list" could drop you on the wrong page. If you opened a folder from page 1 and browsed to page 2 inside it, you came back to page 2 of the list — a page you had never visited. The same thing happened in reverse: a folder opened from page 3 of the list did not bring you back to page 3.

The gallery now remembers which page a folder was opened from and returns you to exactly that page. A folder always opens at its own first page, no matter where in the list you opened it from.

We also fixed a related problem that could leave the gallery looking empty. The page number was never checked against the number of pages actually available, so returning to a shorter list — or narrowing it with a search — could land you past the end and show no images at all, even though there were plenty to see. The gallery now always shows the last available page instead of an empty grid. Changing the search term or the number of images per page also returns you to the first page, matching how the status filter already worked.