#Page not starting on scroll position top

9 messages · Page 1 of 1 (latest)

red oracle
#

Hello, when I scroll on my /post route and navigate to /post/$postId, it doesn't reset the scroll position. Anyone has an idea why so?

#

I have set scrollRestoration: true in my router.ts

#

and I also tried to use resetScroll on the <Link> element

magic canopy
#

do you have a different scroll container than window?

red oracle
#

yes

magic canopy
red oracle
#

ah I see, thank you so much

#

I think I try first to avoid a scrollable container

magic canopy
#

why though? does it not work with scrollToTopSelectors ?