history.back() does not maintain scroll position

Tanachai Thürling asked on January 2, 2019 14:12

Hello Everyone,

currently i have a page with products listed - filterable with a SmartSearchFilter and displayed with SmartSearchResults and a SmartSearchDialog. The redirection to a product brings you to a page with a repeater.

As a user i want to click on the back button and be on the scroll position where i've been before. There is a button with a window.history.back(); and only on Firefox the scroll position is not maintained.

Any possible workarounds for firefox?

Correct Answer

Zach Perry answered on January 2, 2019 15:43

Might want to look at this post on Stack Overflow.

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.