Odd behavior of image links in galleries. Feature or a bug? 🤔

Not sure if this is a bug or “a feature”, as they say :grin: but if it is a bug, I’d like to bring it to the Ghost team’s attention to help them fix it.

Currently, it is possible to make gallery images hyperlinks so that when somebody clicks on these images they are taken to a URL, rather than the default behavior of gallery images which is to open a larger version of the image in a modal window.

To do this, at the moment, what you need to do is create an image card, add a hyperlink to it, then create a gallery and drag the image card into it. That image in the gallery then becomes a link, which is great, because that’s what we want :partying_face:

But the odd thing is that the link only opens with a middle-click. A left-click, which people would be accustomed to using to open links, still just opens a modal.

I’ve noticed that a few people have missed this and assumed that gallery image links weren’t working at all. I only thought to try a middle-click because I noticed a URL appearing in the status bar while hovering over the image.

That’s not the default behaviour, it’s coming from your theme. Which theme are you using?