Currently, the URL field in the dataset only opens in a new window when you assigned it to text, image or button site elements. I will need it to open in the same window. How do I write a JS for this function and hook it to the dataset? Is this the right way to do it?
1 Like
Hi,
You can create an onClick event to the relevant element ( image, text, button etc…) and use the to( ) function of the Wix-Location API to redirect to the relevant URL.
Good luck,
Tal
Did someone find a solution for this to connect an url with .target = “_self” without including an image, text, button etc ?