[Solved] How to open in new tab with wix location

Hello, I have added a hotel reservation bar to my site, I redirect to an external site with dynamic data. I used the code below, but I can’t open it in a new tab. Is there a way to do this?

// Wix Velo sayfa kodu
import wixLocation from ‘wix-location’;

$w.onReady(function () {
// Bugünün tarihini al
let today = new Date();
let tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1); // Bir gün sonrasını ayarla

// DatePicker'lara varsayılan değerleri ata
$w('#datePickerIn').value = today;
$w('#datePickerOut').value = tomorrow;

// Tarih biçimlendirme fonksiyonu
function formatDate(date) {
    let month = (date.getMonth() + 1).toString().padStart(2, '0'); // Ay 0-11 arası olduğundan 1 ekliyoruz
    let day = date.getDate().toString().padStart(2, '0');
    let year = date.getFullYear();
    return `${month}/${day}/${year}`;
}

$w('#submitButton').onClick(() => {
    // DatePicker'lardan tarihleri al
    let selectedDateIn = $w('#datePickerIn').value;
    let selectedDateOut = $w('#datePickerOut').value;

    // Eğer tarih seçilmemişse hata döndür
    if (!selectedDateIn || !selectedDateOut) {
        console.log('Lütfen hem giriş hem de çıkış tarihi seçiniz.');
        return;
    }

    // Tarihleri MM/DD/YYYY formatına dönüştür
    let formattedDateIn = formatDate(selectedDateIn);
    let formattedDateOut = formatDate(selectedDateOut);

    // Dropdown'lardan değerleri al
    let adults = $w('#adultsDropdown').value;
    //let children = $w('#childrenDropdown').value;
    let hotelID = $w('#hotelDropdown').value;
    let languageID = 19;
    let rooms = 1;

    // Linki oluştur
    let bookingLink = `https://bookings.travelclick.com/${hotelID}?Adults=${adults}&DateIn=${formattedDateIn}&DateOut=${formattedDateOut}&LanguageID=${languageID}&Rooms=${rooms}#/guestsandrooms`;

    console.log(bookingLink); // Linki kontrol edebilir veya yönlendirme yapabilirsiniz.

    // Kullanıcıyı linke yönlendir
    wixLocation.to(bookingLink);
});

});