title: Spring. Redirect to external url in controller without encoding
body: <p>I am trying to make redirect to external URL in my controller:</p>
  
  <pre><code>return "redirect:" + url;
  </code></pre>
  
  <p>all works fine for common urls, but now I need to redirect for url which contain other url as parameter (partner program referrer url). I have configured <code>CharacterEncodingFilter</code> in my <code>web.xml</code>. And as I understand this filter encode my parameter url to <code>UTF-8</code> characters ('http://' encoded to 'http%3A%2F%2F'). This throw error in partner program.</p>
  
  <p>How can I avoid encoding url in my controller?</p>
  
  <p>Perhaps my conclusions contain errors?</p>