We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7eccaa commit 6554f5dCopy full SHA for 6554f5d
static/js/index.js
@@ -194,7 +194,10 @@ document.addEventListener('click', function(e) {
194
!e.target.classList.contains('image-card-img') &&
195
!e.target.src.includes('#no-click')) {
196
197
- // Open image in same tab, just like clicking a regular link
198
- window.location.href = e.target.src
+ // Open image in same tab, similar to image shortcode
+ // Create a temporary anchor element to resolve the relative URL properly
199
+ const tempAnchor = document.createElement('a')
200
+ tempAnchor.href = e.target.getAttribute('src')
201
+ window.location.href = tempAnchor.href
202
}
203
})
0 commit comments