Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

using :back in a redirect_to on a verify should redirect to the referring page

#280

This patch fixes:

verify :method => :post, :redirect_to => :back

from looking for an action called back.

Instead it should redirect to the referrer.

Reported by Amos King · May 30th, 2008 @ 12:52 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Amos King
    Amos King

    Added another patch with a test for when referrer is set. The first patch had no referrer set in the test.

    May 30th, 2008 @ 01:07 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [1b4b8fbbd95d7d674df7f013fd88b9b7f859a6f1]) verify :redirect_to => :back should redirect to the referrer. [#280 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 17th, 2008 @ 06:30 PM

  3. Repository
    Repository

    (from [b99c1c939cd2329dad6d16a9dfeafdecdd5a412d]) verify :redirect_to => :back should redirect to the referrer. [#280 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 17th, 2008 @ 06:32 PM

  4. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 11th, 2010 @ 10:56 AM