On dynamic page (ex /Storage/prs0000019) I have gallery connected to Dataset (Link->ProductPageUrl). Standard Product Page (classic) is opening . Now I want to come back from Product Page to gallery page.
Trying to add button and code on Product Page:
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';
$w.onReady(function () {
});
export function button9_click(event, $w) {
let prevPage=wixWindow.referrer;
let locale=prevPage.replace(wixLocation.baseUrl,'/')
wixLocation.to(locale);
}
Nothing. Simple wixLocation.to( “/Storage/prs0000019”) does work. Test was done on updated published site
Standard Prev/Next buttons on Product Pages used to disappear. It means sometimes it’s there, sometimes not. Can’t identify the reasons