Hi everyone,
I’m struggling to restore the scroll position on a search/results page after a user clicks a product (opens product page) and then returns.
I tried saving window.scrollY in sessionStorage before navigating, and using window.scrollTo() on page load to restore it — but it doesn’t work reliably.
My RG is vertical, with “Show all items immediately” is not enabled (I’ve also tried by enabling it). The scroll is on the page, not inside a group.
I’ve tried setTimeout, longer delays, and verified sessionStorage is working — but the page always scrolls to the top on return.
Has anyone solved this in a stable way?
Link here: Buscar palas de pádel | Segunda mano, reacondicionadas y outlet | Padygo
Thanks!