From 675fd47e8373db9172a22411af8b1aec5a278aa5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 21 Feb 2005 02:04:01 +0000 Subject: Redirects to root should be / not "" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/url_rewriter.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/url_rewriter.rb b/actionpack/lib/action_controller/url_rewriter.rb index 45263f40fe..7fdf95a79d 100644 --- a/actionpack/lib/action_controller/url_rewriter.rb +++ b/actionpack/lib/action_controller/url_rewriter.rb @@ -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 -- cgit v1.2.3