diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-25 08:33:21 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-25 08:33:21 +0100 |
commit | 8227bf7ee9697d71547c6fa3cdc880952c6ba7ec (patch) | |
tree | 319ec4320ca24e85c290f9376a58d389bbbb1951 /ci | |
parent | 8aafb3d33d55130ef40946958f629e269d007bfe (diff) | |
download | rails-8227bf7ee9697d71547c6fa3cdc880952c6ba7ec.tar.gz rails-8227bf7ee9697d71547c6fa3cdc880952c6ba7ec.tar.bz2 rails-8227bf7ee9697d71547c6fa3cdc880952c6ba7ec.zip |
Use `request.fullpath` to build redirect url in `force_ssl`
The `force_ssl` command now builds the redirect url from `request.fullpath`.
This ensures that the format is maintained and it doesn't redirect to a route
that has the same parameters but is defined earlier in `routes.rb`. Also any
optional segments are maintained.
Fixes #7528.
Fixes #9061.
Fixes #10305.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions