Close panel after open page

how to close the left-pane first, before opening the page link href=“/page/”

Without more code, it’s hard to be specific. Something like this should work though:

<f7-link panel-close href="/page/">Link to page</f7-link>

Thank you, I thought of something like afterLoad or onClose in the example material it works well, but in practice I couldn’t, I used it with the css selector, thanks for the help anyway.