Skip to content

Commit

Permalink
Handle HTML format in respond_to
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Nov 26, 2024
1 parent ea0bfbc commit 29e7b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/change_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def require_login
# TODO: remove format.js handling after the create_synonym and remove_synonym actions are converted
# from Rails UJS to Turbo Streams.
respond_to do |format|
format.turbo_stream { redirect_to login_index_path }
format.any(:html, :turbo_stream) { redirect_to login_index_path }
format.js { render js: "window.location.href='#{login_index_path}'", status: :found }
end
end
Expand Down

0 comments on commit 29e7b22

Please sign in to comment.