title: What is the difference between `path` and `fullPath` in VueJS router?
body: <p>In my <code>router.js</code> file, when I'm using the <code>beforeEach</code> method, I get <code>path</code> and <code>fullPath</code> in the properties of <code>to</code> and <code>from</code> parameters. I'm wondering which one I should use for redirection purpose. I've seen both been used and I don't when to use which, and what is the difference between both.</p>
  
  <p>An exemple:</p>
  
  <pre><code>export default new Router({
      mode: 'history',
      base: process.env.BASE_URL,
      routes: [{
          path: 'login'
          beforeEnter: (to, from, next) =&gt; {
              console.log(to, from) // the routes
              if (User.loggedIn()) {
                  next(from.fullPath) // or maybe `from.path`
              } else {
                  next()
              }
          },
      }]
  })
  </code></pre>