quasar: Vue 2 router scrollBehavior not working for layout views

In history mode, Vue 2 router scrollBehavior is only working for “top” components not using layout.

@rstoenescu should I open an issue about scrollBehavior and nested routes directly on vue-router or do you think it’s on the Quasar side?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

You will be able to use history mode for websites only though. I’ll write a directive for the scroll behavior which will work in both history and hash mode.

Will update the default starter kit today (“v2”) with some improvements for when using history mode. Make sure you update Quasar CLI too to generate a project and check it out.

I noticed that. Can’t wait! 😄

Then you’ll be good 😉 There’s a progressive app starter kit on the todo list for Quasar.

I will make a statement soon about Vue Router’s “history” mode. There are some technical limitations that cannot be currently overcome, the most important one being you can’t build with history mode for Cordova.