Hi All,
I currently use a lightbox as a menu in my client’s profiles (Dynamic Page). I have also included anchored on their profiles for quicker navigation. Now when I am running the sit-in preview mode these anchors work with no problems. But on the live site, I always
get redirected to a page not found page.
Is this a bug or have I not done something to make these buttons work on each of the individual profile pages?
WEBSITE: www.primalconquest.co.uk
Hello. Yes that’s a a bug. Thanks for submitting it .
It happens when lightbox with a link and destination are on the same page.
How can you make things work?
You can add onClick event that will close lightbox and pass to outer page object with info about what button had been clicked. In outer page you make a scroll;
///In lightbox
dataObject = {clickedLink:‘example-url’};
lightbox.close(dataObject) ;
//In page
wixWindow.openLightbox(“LightboxName”) .then( (data) => { $w(data.clickedLink).scrollTo(); } );
Oh brilliant thank you I will give this a go! 
Hi Andrii,
Will this work the same with a dynamic page as im still having issues…
Cheers Simon