Redirect to URL in a URL field

Yes, they land on dynamic page. I used the below code and got this error. The BoatData (ID) is referencing Collection name and Field name of each Wix ID for each record.

ReferenceError: wixLocation is not defined
(Line 4)
BoatData (ID)

$w("#dataset1").onReady(() => { 
    let currentItem = $w("#dataset1").getCurrentItem();
    let link = currentItem.url;
    wixLocation.to(url);
})