title: How to pass parameters on redirecting using Vue Router
body: <p>I have a sample Vue router here which handles going to the login first before accessing the form with a specific id:</p>
  
  <pre><code>router = new VueRouter({
               routes: [
                   {path: '/form/:id', redirect: '/login'},
                   {path: '/login', name: 'Login', component: Login}
               ]
           });
  </code></pre>
  
  <p>Is there a way that the login can still access the :id parameter passed since when I run <a href="http://localhost:8080/form/c101-101" rel="noreferrer">http://localhost:8080/form/c101-101</a> it directly redirects to the Login component and when I try to log this.$route.params.id inside the login component it's <strong>undefined</strong>. Is there a way I can pass the :id on redirect?</p>