Static GitHub Issues

[196] 'scrollToTop' not working

prev: version mismatch
next: Error importing npm vue component

When navigating between the pages it seems to always maintain the same position as before. I've set 'scrollToTop: true' for all pages (even though that is done by default), and for my dynamic page that loads data from the vuex store.

The router setup looks as follows

export default new Router({
  mode: 'history',
  base: '/',
  linkActiveClass: 'nuxt-link-active',
  scrollBehavior,
  routes: [
		{
			path: "/",
			component: _628e917c,
			name: "index"
		},
		{
			path: "/studio",
			component: _e2b616c8,
			name: "studio"
		},
		{
			path: "/contact",
			component: _2afe8d6c,
			name: "contact"
		},
		{
			path: "/:projects/:slug?",
			component: _17dc14fe,
			name: "projects-slug"
		}
  ]
})

Any help would be very appreciated 😄 Awesome work with nuxt btw.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c166">#c166</a>)</em></sub></div>