When using a Modal for off-canvas menu in Oxygen for one-page websites, typically we have a nav menu inside the Modal that has links to sections on the same page. After the user is taken to the target element, the modal continues to remain open.
This members-only tutorial provides the steps to close the modal when the nav menu links are clicked.
In your Oxygen Template add a Code Block at the end of all other elements.