Add a publishing mode that puts a fully qualified path in for all links.
At the moment files in the pages subfolder are always relative links.
For the way I am embedding these pages in Moodle this means I have to publish the file and then do a search replace to include the missing ‘https://mysite/var/html/rw/rw_pages/’ part for these links. Only then can the page HTML be embedded.
If this publishing feature was included this would become as simple as copying and pasting the html directly.