Skip to content

Commit 5bfce57

Browse files
authored
Merge pull request rails#54849 from 1klap/auth_sessions_controller_status_code_for_destroy
Fix rails#54848: Change redirect status code in SessionsController#destroy template from 302 to 303
2 parents 0c90b26 + 53dd70c commit 5bfce57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/authentication/templates/app/controllers/sessions_controller.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class SessionsController < ApplicationController
1616

1717
def destroy
1818
terminate_session
19-
redirect_to new_session_path
19+
redirect_to new_session_path, status: :see_other
2020
end
2121
end

0 commit comments

Comments
 (0)