Refresh on Lightbox Close

Hello, this is what I have on the lightbox where button7 is my close button. The lightbox opens from the dynamic page and when closing, it does not refresh the page. Thanks for looking.

 
export function button7_onclick(event) {
  wixLocation.to(`/Tenants/Update/${wixUsers.currentUser.id}`); 
}