Proper linking within the website
Currently, we use m.route.link
for onupdate
for internal links to avoid reloading of the website.
With Mithril v1.x, this does not automatically scroll to the top of the page anymore. But for our website project, this this the needed behavior.
We need to find a way how we can scroll to the top when the route changes.
Possible workaround: http://ratfactor.com/mithril-route-scroll/