Open URL Defined by Dataset in the Same Tab using a Gallery

I’m trying to create a gallery that will appear on a number of pages across my site, but I want to be able to make changes to this gallery from one central location. I’ve been trying to use a dataset to generate the content in the gallery and it’s working great. The gallery needs to have images as well as text that displays on hover. When one of the images in the gallery is clicked, I want it to redirect to a different page on my site. I’ve managed to make all of that work using a gallery I created and linked to a dataset.

The problem is, when one of the images in the gallery is clicked, the new URL is opened in a new tab but I need it to open in the same tab. Does anyone have any thoughts on how to achieve this? I’ve attached a screenshot of the dataset/gallery below to give you an idea of what I’m currently doing. The different pages across my site that will have this gallery on them are very different, so I haven’t been able to do this using the dynamic page feature.

If you search the forum for previous posts you will find the answer involves putting the target function from Wix LinkableMixin API in the pages onReady function.
https://www.wix.com/corvid/reference/$w.LinkableMixin.html#target

See these previous that explain more with the first from 2017…
https://www.wix.com/corvid/forum/community-discussion/how-to-link-a-button-using-code
https://www.wix.com/corvid/forum/community-discussion/how-to-open-a-url-in-the-same-tab

Hi Sam, I was wondering whether you were able to solve your issue? I am in the same boat as you were and cannot get my head around how this can be achieved from the recommended links and