title: Vue-router: beforeEnter guard doesn’t work properly for children path
body: <p>I'm trying to define a beforeEnter guard for my children routes, but I'm having no success. Here's my routes configuration:</p>
  
  <pre><code>  ...
    {
      path: '/',
      component: App
      beforeEnter: (to, from, next) -&gt;
         # This block is only reached when I refresh the page
  
      children: [
        {
          name: 'component1',
          path: '/component1',
          components: component1
        },
        {
          name: 'path2',
          path: '/path2',
          components: component2
        },
       ...
      ]
    }
    ...
  </code></pre>
  
  <p>Everything works fine when I refresh the page or insert the url directly on the browser (for example: base_path/path2). But when I click on router-links that redirects to path1 or path2, the beforeEnter guard does not execute.</p>
  
  <p>Did I understand anything wrong? Do I need to set a beforeEnter guard for each of the children?</p>