Open Page in same page

hello, so i have trouble with open the link in the same page using repeater.

i found a couple of source but the conclusion is the same, i need to put these code

$w.onReady(function () {
    $w("#button1").target = "_self";
    })

Or

$w("#buttonRepeater").onItemReady(($i, iData) => {
    $w("#button").link = ;
    $w("#button").target = "_self";
    })

i tried to put these code inside the repeater and after repeater but the in the end the result be the same;
i can open the link in the same page but only for the “first click”. what i mean by that is whenever i open any link, it opened in the same page but after that if i want to open another link it somehow keep open in the new page. The only solution to this is after i open any link, if i wanna open another link i have to go back in that browser then open another link, that way i can keep open in the same page. But its very inconvenient since you have to go back every once a while

$w.onReady(() => {
 $w("#dataset1").onReady(() => {
  $w("#buttonRepeater").onItemReady(($i, iData) => {
   $i("#button").target = "_self";
   $i("#button").link = iData.link ;
  })
 })
})

idk but it still gives me the same problem i mentioned earlier