Fix legacy UR redirects to work with Rails 4