title: NuxtJs nuxt-link scroll behaviour with fixed sidebar layout
body: <p>I'm currently building a Nuxt application with a layout of a fixed sidebar on the left side of the page, and scrollable content on the right side of the page.</p>
  
  <p>Because of this layout I use flexbox with overflow:hidden on the page wrapping div, and on the content container overflow:scroll</p>
  
  <p>You can view the code for this here:
  <a href="https://jsfiddle.net/yk6Lepq2/" rel="nofollow noreferrer">https://jsfiddle.net/yk6Lepq2/</a></p>
  
  <p>Now when using a nuxt-link, normally it will scroll the page to the top, but since the layout has been changed and my application isn't using the initial body/html tag scrollbar it won't scroll the page to the top. I have been reading the NuxtjJs documentation but sadly I can't exactly find out how to change the target scrollbar to be scrolled.</p>
  
  <p>I already put the following code in my nuxt.config.js but that doesn't help.</p>
  
  <pre><code>router: {
      scrollBehavior: function (to, from, savedPosition) {
          return { x: 0, y: 0 }
      }
  }
  </code></pre>
  
  <p>Is anybody here able to help me out with this problem? Any help is appreciated.</p>