There were state events added to browser component not too long ago, but they don’t work for SPA.
We have made it a practice to do such things wherever we have internal anchor tags or gotos - its not ideal at all, but works for now.
If an actual solution can be provided here, it would be great.
One of our applications uses a 3rd party theme - I don’t remember the name - which has a built-in JS binding to do exactly what you are looking for - works on SPA’s internal redirection well. We can’t control or manipulate it from Wappler though. @nshkrsh can probably help with the theme name.