1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Andrew White 9dbd208562 Respect SCRIPT_NAME when using redirect with a relative path
Example:
    # application routes.rb
    mount BlogEngine => '/blog'

    # engine routes.rb
    get '/admin' => redirect('admin/dashboard')

This now redirects to the path `/blog/admin/dashboard`, whereas before it
would've generated an invalid url because there would be no slash between
the host name and the path. It also allows redirects to work where the
application is deployed to a subdirectory of a website.

Fixes #7977
2013-10-10 13:03:26 +01:00
..
abstract_controller Make AC standalone rendering work 2013-09-10 11:01:12 -03:00
action_controller Typo fix [ci skip] 2013-10-09 14:27:36 +02:00
action_dispatch Respect SCRIPT_NAME when using redirect with a relative path 2013-10-10 13:03:26 +01:00
action_pack rails/master is now 4.1.0.beta 2013-04-29 13:15:24 -03:00
abstract_controller.rb No need for .rb extension 2013-08-25 11:39:09 +02:00
action_controller.rb Remove BasicRendering tests 2013-09-09 16:10:41 -03:00
action_dispatch.rb Remove extra whitespace 2013-04-06 00:54:44 +03:00
action_pack.rb