I have tried the following but no luck, I can’t get the page that called the Lightbox to refresh.
wixLocation.to(“/account/my-children”);
wixWindow.openLightbox(“registerChild”)
.then( () => {
wixLocation.to(“/account/my-children”); //page name
} );
figured it out: wixLocation.to(‘/account/my-children/${wixUsers.currentUser.id}’);
If you are just wanting the lightbox to close and the page that the user is on to refresh itself, then you can simply add something like this to your lightbox page code, which will close the current lightbox and then trefresh the page that the user was on already.
//rest of code//
wixWindow.lightbox.close();
wixLocation.to(wixLocation.url);
//rest of code//