From f986c6f0a5036c34b053f4d1bd285452d0fd413a Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 21 Dec 2023 21:14:00 -0800 Subject: [PATCH] Fix Gallery lightbox URL to image --- web/templates/photo/gallery.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/templates/photo/gallery.html b/web/templates/photo/gallery.html index 4e6435a..1efe6d3 100644 --- a/web/templates/photo/gallery.html +++ b/web/templates/photo/gallery.html @@ -572,7 +572,7 @@ {{else}} - @@ -646,7 +646,7 @@ document.querySelectorAll(".js-modal-trigger").forEach(node => { node.addEventListener("click", (e) => { e.preventDefault(); - setModalImage(node.href); + setModalImage(node.dataset.url); $modal.classList.add("is-active"); }) });