mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Redirects to root should be / not ""
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
f384582240
commit
675fd47e83
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ module ActionController
|
|||
|
||||
path, extras = Routing::Routes.generate(options, @request)
|
||||
path = "/#{path.join('/')}".chomp '/'
|
||||
path = '/' if path.empty?
|
||||
path += build_query_string(extras)
|
||||
|
||||
return path
|
||||
|
|
Loading…
Reference in a new issue