mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 13:24:55 +00:00
For some pages, when navigating to a topic and then pressing the Back browser button to go back to the topic list, the scroll position was not preserved and the user was taken to the beginning of the list. This happened because the application failed to detect when the user used the Back button and whether the topic list should be fetch from the cache or not. The scroll position is preserved only for cached topic lists. Other improvements: * Improve isPoppedState * Reset position for topic-lists from user-activity page * Remove usage of jQuery * Make sure the scrollTo function has effect Follow up to 618a1ba5711a67603e5783a528fd5d468ed42d7e.