# File lib/action_view/helpers/prototype_helper.rb, line 866
          def redirect_to(location)
            url = location.is_a?(String) ? location : @context.url_for(location)
            record "window.location.href = #{url.inspect}"
          end