Skip to content

Commit

Permalink
Merge pull request #11097 from ralmn/ac-follow-redirection
Browse files Browse the repository at this point in the history
ETQ Usager si je me connecte en Agent-Connect/Pro-Connect je veux être redirigé vers ma page d'origine
  • Loading branch information
colinux authored Dec 2, 2024
2 parents 9be0d58 + e60b2bb commit 0b99f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/agent_connect/agent_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def callback

sign_in(:user, instructeur.user)

redirect_to instructeur_procedures_path
redirect_to stored_location_for(:user) || instructeur_procedures_path

rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message
Expand Down

0 comments on commit 0b99f6c

Please sign in to comment.