#Nuxt3 Static Site Scroll Issue on Route Change

7 messages · Page 1 of 1 (latest)

terse mason
#

Hey everyone! I have a Nuxt3 app where I use npx nuxi generate for static site generation and I've set up page transitions as per the official guide (https://nuxt.com/docs/getting-started/transitions). Everything works flawlessly, but I've observed that when navigating between routes, the scroll position of the new page is retained from the previous page. I suspect this could be due to preloading but I am not sure.

How can I ensure that every new page starts at the top scroll position after a transition?

storm flint
terse mason
#

Thanks for replying. I found out that this issue is actually related to a different issue that I found where if you use a page transition the pages load on top of each other. I am making another post in Discord about this now

terse mason
storm flint
#

Is everything okay, has the issue been resolved?

terse mason
#

Not yet, I made an issue on the Nuxt Github

storm flint