Fix thumbnail image modal image url

This commit is contained in:
DariusIII
2025-10-31 11:52:48 +01:00
parent a178840549
commit 76f40eab6e
+2 -4
View File
@@ -2353,10 +2353,8 @@ function initDetailsPageImageModal() {
const imageUrl = this.getAttribute('data-image-url');
const imageTitle = this.getAttribute('data-image-title') || 'Image Preview';
// Update the full image URL (replace _thumb with the full image)
const fullImageUrl = imageUrl.replace('_thumb.jpg', '.jpg');
imageModalImage.src = fullImageUrl;
// Use the image URL as-is (keeping _thumb suffix)
imageModalImage.src = imageUrl;
imageModalTitle.textContent = imageTitle;
imageModal.classList.remove('hidden');
imageModal.style.display = 'flex';