Hi guys,
I need some links in my dataset to open in my current tab instead of opening a new tab by default.
Here is my code and an image of my dataset:
import wixData from 'wix-data';
$w.onReady(function () {
//TODO: import wixData from 'wix-data';
});
export function locationdropdown_change(event) {
let searchLocation = $w("#locationdropdown").value;
$w("#dataset1").setFilter(wixData.filter().contains("locations", searchLocation));
}
export function roledropdown_change(event) {
let searchRoleCategory = $w("#roledropdown").value;
$w("#dataset1").setFilter(wixData.filter().contains("roleCategory", searchRoleCategory));
}
![](https://static.wixstatic.com/media/a27d24_7e09cd26ea2441f7b5106c1808de85e3~mv2.png/v1/fill/w_380,h_404,al_c,q_85,enc_auto/a27d24_7e09cd26ea2441f7b5106c1808de85e3~mv2.png)
Would be grateful for some advice
You need to use target as well as link, so that the code knows to open in new page or same tab.
https://www.wix.com/corvid/reference/$w.LinkableMixin.html