Change page from script

Hi!

How do I change the page in nodejs SPA internally without loading the layout page with javascript?
I tried to use window.location.href = "/page"; but this reloads the layout page too.

Community Page
Last updated: