Try this one…
$w.onReady(function () {
$w('#dropdown1').onChange(()=>{
$w("#dataset1").onReady(() => {
let currentIndex = $w('#dropdown1').selectedIndex
$w('#dataset1').setCurrentItemIndex(currentIndex)
let currentItem = $w('#dataset1').getCurrentItem()
console.log(currentItem)
console.log(currentItem.title)
// let URL = "" //<---- modify to Dynamic-URL
wixLocation.to(["memberprofiledata-1/{Title}"])
})
})
})