thank you for the reply.
I removed ALL the code to handle the ‘X’ button, and leaving it up to WIX. The ‘X’ button does not refresh the page.
2nd example:
I have page with a button (Register Children) that calls the same Lightbox by WIX gui method not my code. The lightbox after the user provides child’s data clicks a button (button has my code and is not linked by Wix gui)
to register the child in the Children’s collection and the this code at the end:
[wixWindow.lightbox.close();](wixWindow.lightbox.close();
wixLocation.to(‘/account/my-children/${wixUsers.currentUser.id}’);
)
[wixLocation.to(‘/account/my-children/${wixUsers.currentUser.id}’);](wixWindow.lightbox.close();
wixLocation.to(‘/account/my-children/${wixUsers.currentUser.id}’);
)
The page that calls the lightbox sometimes is refreshed and some times it is not (for whatever reason it seems to not refresh the page more times when trying to register a second or third etc child.