Skip to content

Commit

Permalink
bs4 fix no ssn banner (#4152)
Browse files Browse the repository at this point in the history
* add logic to match action to redirect back with flash

* use ternary
  • Loading branch information
charlienparker authored Jul 31, 2024
1 parent a796ec4 commit d79a8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/insured/consumer_roles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def match
text += "Please #{view_context.link_to('sign in', SamlInformation.iam_login_url)} with your username and password "
text += "or #{view_context.link_to('click here', SamlInformation.account_recovery_url)} if you've forgotten your password."
flash[:alert] = text
format.html {redirect_to ssn_taken_insured_consumer_role_index_path}
format.html { redirect_to(@bs4 ? request.referrer : ssn_taken_insured_consumer_role_index_path) }
else
format.html { render 'search' }
end
Expand Down

0 comments on commit d79a8a8

Please sign in to comment.