wixLocation.to('/account/my-children/${wixUsers.currentUser.id}');

It is the same with opening a lightbox too, you can simply link an element like a button to open your lightbox through the Wix Editor itself.

Or you can use code to open the lightbox for you.
https://www.wix.com/corvid/reference/wix-window.html#openLightbox

However, you can’t have both of them and doing the same thing, you have to have one or the other.