title: Angular: Reference query params in redirectTo
body: <p>I would like to provide a path that redirects to a given page based on query parameters. For example:</p>
  
  <pre><code>/redirect?page=hero&amp;id=1
  </code></pre>
  
  <p>should redirect to:</p>
  
  <pre><code>/hero/1
  </code></pre>
  
  <p>Is there any way to do this in the route config? Something like:</p>
  
  <pre><code>{ path: 'redirect?page&amp;id', redirectTo: ':page/:id' }
  </code></pre>
  
  <p>I can get the <strong>redirectTo</strong> to respect path parameters but not query parameters. Any ideas?</p>