How to Automatically Reset Scroll on URL Parameter Changes in an SPA

If you’re already using multiple URL parameters and running your app as an SPA on a single page, it’s easy to forget about scroll behavior.
While working on a client project, I noticed the template didn’t have any built-in scroll reset logic, and there were way too many buttons — so I added it manually.

Here’s what worked for me: I put the scroll logic inside “Do when condition is true (Every time)”,
and just used Page is visible as the condition.

Sharing this in case it helps anyone — and if you know a better way to detect this, I’d love to hear it.

the code