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.

redirect_to doesn't work with complex URI schemes

#1247

ActionController::Base#redirect_to doesn't handle complex URI schemes (per http://en.wikipedia.org/wiki/URI.... This means that URL handlers such as "x-iphone-app" can't be redirected to by Rails apps.

redirect_to patch: http://github.com/mojodna/rails/...

corresponding test: http://github.com/mojodna/rails/...

Reported by Seth Fitzsimmons · October 21st, 2008 @ 11:06 PM

State: committed
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH

    Please include the patches as a single file to this ticket.

    October 30th, 2008 @ 11:50 AM

  2. Seth Fitzsimmons
  3. Repository
    Repository
    • State changed from new to committed

    (from [47b4fa4a621ee48ab17545b1e9fb38efef53b28e]) Fixed regex in redirect_to to fully support URI schemes [#1247 redirect_to doesn't work with complex URI schemes state:committed]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    October 30th, 2008 @ 08:12 PM