Scroll up on page load/reload

What must I do to have the page scroll up upon SPA-page reload? Do I have to add a JS for this on every page (e.g. using HTMLSnip rendered as JS, or just hardcoding it into a custom wid)? Thankyou
1 answers

Update: Mendix 5.16.1 is out now and it still fixes this problem and it fixes the issues that were found with 5.16.0.

This issue has been fixed in 5.16.0. In the release notes:

Scroll to the top after navigating to another page sharing the same layout (Ticket 225864).

However, since there are some issues with 5.16.0 I would recommend you not to upgrade yet and wait for the first patch release.

But at least it is not something you will have to fix yourself!