top of page
the code
for dynamic page
import wixLocation from 'wix-location';
$w.onReady(function () {
let item = $w('#dynamicDataset').getCurrentItem();
let picture = item.image;
let url = picture.split("/")[3];
let filename = item.note;
wixLocation.to(`https://static.wixstatic.com/media/${url}?dn=${filename}`);
});
bottom of page