Alternatively you could just use a slug structure using go to page (same page as single page app) that sends a param to navigate single page app.

So you technically switch pages so back and forward button works fully on single page apps.