This project is archived and is in readonly mode.

#5408 ✓resolved
Thibaud Guillaume-Gentil

[Rails 3] Routes redirect method bug with https

Reported by Thibaud Guillaume-Gentil | August 19th, 2010 @ 01:43 PM | in 3.0.2

The redirect method doesn't work with https request scheme.

match 'account/logout' => redirect("/logout")

When going on https://www.example.com/account/logout, the redirect going on http://www.example.com:443/logout rather than https://www.example.com/logout. Quite annoying :(

I haven't found how to test https scheme on dispatch/routing_test.rb, sorry.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages