special-gallery: scope image prev/next/back to special galleries; add tests

This commit is contained in:
2026-03-27 21:04:18 -04:00
parent 0e48a5d9bd
commit 21a3ab40c5
6 changed files with 145 additions and 63 deletions

View File

@@ -122,7 +122,7 @@ def render_directory(request, path_text, full_path, special=None):
image_data = []
for image in images:
rel_path = image.relative_to(settings.GALLERY_ROOT)
image_url = gallery_url(rel_path, False, query_state)
image_url = gallery_url(rel_path, False, query_state, special)
thumbnail = None
try: