Permalink
Browse files

Redirects to root should be / not ""

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Feb 21, 2005
1 parent f384582 commit 675fd47e8373db9172a22411af8b1aec5a278aa5
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/url_rewriter.rb
@@ -43,6 +43,7 @@ def rewrite_path(options)
path, extras = Routing::Routes.generate(options, @request)
path = "/#{path.join('/')}".chomp '/'
+ path = '/' if path.empty?
path += build_query_string(extras)
return path

0 comments on commit 675fd47

Please sign in to comment.