#7 ✓resolved
Pirkka Hartikainen

Add support for redirect_to :back

Reported by Pirkka Hartikainen | April 29th, 2008 @ 09:54 AM

Sorry if this has been fixed in the latest version!

Requests made via Webrat lead to this error when using redirect_to :back in a controller:

Status: 500 Internal Server Error
No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].

I believe this could be avoided by something like

request.env['HTTP_REFERER'] = response.request.url

in request_page method... but I haven't yet been able to make it work.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket