I want to keep the scroll position when switching to a new route in the Nuxt project. As a default, Nuxt sets the scroll position to the top when every route changes. I tried to customize scroll behavior in nuxt.config.js by returning false, but it didn't work.
question from:https://stackoverflow.com/questions/65600573/how-to-retain-scroll-position-in-new-route-in-nuxt