title: How to redirect with parameters in routing.yml?
body: <p>In the routing.yml you can do things like:</p>
  
  <pre><code>redirect_old_url_to_new:
      pattern:   /old-pattern
      defaults:  
          _controller: FrameworkBundle:Redirect:urlRedirect
          path: /new-pattern
          permanent: true
  </code></pre>
  
  <p>Which will redirect the url <code>/old-pattern</code> to <code>/new-pattern</code>. However, if I have a parameter, how can the parameter be translated in the new path, e.g.: </p>
  
  <pre><code>redirect_old_url_to_new:
      pattern:   /old-pattern/{page}
      defaults:  
          _controller: FrameworkBundle:Redirect:urlRedirect
          path: /new-pattern/{page}
          permanent: true
  </code></pre>
  
  <p>This is NOT working and will redirect to <code>/new-pattern/{page}</code> literally and will therefore redirect from <code>/old-pattern/23</code> to  <code>/new-pattern/{page}</code>.</p>