aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/test_response.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2014-01-01 11:15:31 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2014-01-01 11:19:14 +0000
commitb64bac489c58ce1169941f77f4d633cb4eb87cd8 (patch)
tree2e90df47cd144978e039690d391bdae9faa72ccf /actionpack/lib/action_dispatch/testing/test_response.rb
parent0d4614ca21d147ae3fac915c7a637d7520ff56e3 (diff)
downloadrails-b64bac489c58ce1169941f77f4d633cb4eb87cd8.tar.gz
rails-b64bac489c58ce1169941f77f4d633cb4eb87cd8.tar.bz2
rails-b64bac489c58ce1169941f77f4d633cb4eb87cd8.zip
Allow engine root relative redirects using an empty string.
Example: # application routes.rb mount BlogEngine => '/blog' # engine routes.rb get '/welcome' => redirect('') This now redirects to the path `/blog`, whereas before it would redirect to the application root path. In the case of a path redirect or a custom redirect if the path returned contains a host then the path is treated as absolute. Similarly for option redirects, if the options hash returned contains a `:host` or `:domain` key then the path is treated as absolute. Fixes #7977
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/test_response.rb')
0 files changed, 0 insertions, 0 deletions