Not able to load (redirect) to any product page through link or code

I am looking at displaying a set of products related to the current product and on clicking any of the images, would like to open the product page.
I tried using the image link to product URL it doesn’t work
The following wixlocation.to code is also not working

export function OwnerProductImage_click ( event ) {
let $SelectedItem = $w . at ( event . context );
let itemData = $SelectedItem ( ‘#MemberProductDataset’ ). getCurrentItem ();
wixLocation . to ( itemData . product . productPageUrl );
}

Tried this line , It doesn’t work either
let productlink = “https://www.sumrux.com” + itemData . product . productPageUrl

If anyone could make it work, please tell me how?