title: Angular route redirectTo with params
body: <p>I have a problem with angular routing. In my app i had some routes like this:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>[{
       path: 'myroutes/:id',
       component: BarComponent
   }, {
       path: 'myroutes/:id/:value',
       component: FooComponent
   }]
  </code></pre>
  
  <p>I want to change this routing, but the old routes must be redirected to the new ones. So i changed my code like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>[{
      path: 'myroutes/:id/:value',
      redirectTo: 'myroute/:id/:value'
  }, {
      path: 'myroutes/:id',
      component: BarComponent
  }, {
      path: 'myroute/:id/:value',
      component: FooComponent
  }]
  </code></pre>
  
  <p>With this routing im getting a NavigationError: </p>
  
  <blockquote>
    <p>Cannot redirect to '/myroute/:id/:value'. Cannot find ':id'.</p>
  </blockquote>
  
  <p>Changing the code to use fixed parameters in the <code>redirectTo</code> route solves the error, but the parameters must be dynamic.</p>
  
  <p>The routes are imported with <code>RouterModule.forRoot()</code>.</p>
  
  <p>Hoping this is sufficient information, otherwise feel free to ask for more. ;)</p>
  
  <p>Thanks for your help! :)</p>