The discussion revolves around a bug where using the browser’s back button after clicking a post from search results returns the user to the top of the search page, unlike in categories where the scroll position is preserved. JagWaugh reported the issue, noting it was previously reported but not easily found. sam agreed it’s a bug that should be fixed. codinghorror suggested the issue might be low-risk and could be handled by @eviltrout. nbianca attempted a fix but faced issues with scrollTop not working immediately after rendering. j.jaffeux provided a corrected implementation using the Scrolling mixin and didRender to ensure proper scroll restoration. nbianca acknowledged the help and submitted a pull request here with the fix.
If you’ve used search to get a list of posts, scroll down then click on one of them, if you then use the back function in the browser it always returns you to the top of the search results.
If you view a category, scroll down, then open a topic, the back button returns you to your previous scrolling position.
The issue is that even though scrollTo has the right value in didInsertElement, the scrollTop method does not seem to work (probably rendering has not finished?).