title: Rails routes redirect for query string
body: <p>I have a problem, recently the name of a controller changed.</p>
  
  <p>I changed the routes file to accept calls using the old controller name, for people with bookmarks referencing the old name:</p>
  
  <pre><code>get '/old/about', to: redirect('/new/about')
  get '/old/report/:client', to: redirect('/new/report/%{client}')
  get '/old/:sub_path', to: redirect('/new/%{sub_path}')
  </code></pre>
  
  <p>that works fine. But for calls with query string it blocks it to /report/200. for example:</p>
  
  <p>/old/report/200?c_id=257&amp;end=2013-10-19&amp;num_results=294540&amp;start=2013-10-13</p>
  
  <p>it cuts the url to:</p>
  
  <p>old/report/200</p>
  
  <p>and shows me an error because of the lack of parameters. Do you know what can I do? (I thought the :sub_path line in the routes would help but not) :(</p>