rails/rails — pull request #16905 by alex-ross (2014-09-12 22:47:00+00:00)
Title: Fixes bad href attribute in redirects fallback view

__NOT READY FOR MERGE__

I've written an failing test but unsure how to fix the issue.
[The problem is tracked to this place](https://github.com/alex-ross/rails/blob/fixes-bad-redirect-fallback-link/actionpack/lib/action_controller/metal/redirecting.rb#L76)
```ruby
self.response_body = "

You are being redirected.

"
```

We are using `unwrapped_html_escape` which will convert all `&` in the query string to `&` inside the href attribute. This will then lead to an invalid query string when a user clicks on the link. For example `&foo=bar` will be `&foo=bar` in the browser and if we redirects to an other application this could cause lots of problems.

I guess `unwrapped_html_escape` is important to fix some other unwanted stuff in the url but is there an way to except the `&` character here without lots of workarounds?