Scroll to Top Iron Router(solved)

In my app I use Iron Router for routing. I notice that there are some packages that help in scroll to top for a page when a route changes. This function has stopped working – not sure from when. Even the jquery scrollTop functions do not seem to work.

Can some body help. I do not think it is a meteor issue, but if you have solved this. It would be great. It seems a simple problem to solve …but I am out wits…any help much appreciated.

You might give this a try:

There’s probably an option in Iron Router to run such code on every route change.

Have tried it. It was not working. I found the problem was with the way the layout was defined (I use blaze).