aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorRyan McGeary <ryan@mcgeary.org>2012-02-06 17:47:17 -0500
committerRyan McGeary <ryan@mcgeary.org>2012-02-06 17:47:17 -0500
commit391e6a47dbd46fdce0a472819e8d27792cc91984 (patch)
treec6959229ef34ce1155100d7aeb14225315f6daf8 /actionpack/lib/action_dispatch
parentdd54137e82852ce3a62ce20ecc8550f1ca3a9f96 (diff)
downloadrails-391e6a47dbd46fdce0a472819e8d27792cc91984.tar.gz
rails-391e6a47dbd46fdce0a472819e8d27792cc91984.tar.bz2
rails-391e6a47dbd46fdce0a472819e8d27792cc91984.zip
Fixed force_ssl redirects to include original query params
`ActionController.force_ssl` redirects http URLs to their https equivalent; however, when a URL contains a query string, the resulting redirect lacked the original query string.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 06919518e8..552d472afa 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -575,6 +575,7 @@ module ActionDispatch
path_addition, params = generate(path_options, path_segments || {})
path << path_addition
+ params.merge!(options[:params] || {})
ActionDispatch::Http::URL.url_for(options.merge!({
:path => path,