Hi there, i’m old to wix but absolutelly new to corvid and I have zero experience in coding, so I apologize in advance for any stupid things I’m about to say
I’ve started using dataset and repeater in my site.
I’ve set up a button in order to open the dedicated page i need to open but alas it open in a new tab (I don’t undersand how this could be the default option)
I’ve found a corvid code that is supposed to fix this, and I copyed and paste it in the corvid section, but obviusly I’m doing something wrong.
This is the post I’m refering too [https://www.wix.com/corvid/forum/community-discussion/repeater-open-link-in-same-window](https://www.wix.com/corvid/forum/community-discussion/repeater-open-link-in-same-window
an)
And this is the code:
import wixLocation from ‘wix-location’;
export function button1_click(event, $w) {
let link = $w1(“#button1”).link;
console.log(link);
wixLocation.to (link);
}
So, i do i implement this code? Do i just paste it in to the corvid editor as i’ve done here?
Can anybody troublshooting what is going on?