title: Preserving referrer on redirect_to in Ruby on Rails
body: <p>For webtracking purposes, I'd like to preserve the HTTP referrer when using <code>redirect_to</code> in Rails. This is needed to redirect to the respective language version.</p>
  
  <p>Code example:</p>
  
  <pre><code>redirect_to "/#{Option[:locales].first}", :status =&gt; 301
  </code></pre>
  
  <p>How can I preserve the referrer without using query parameters?</p>