Merge pull request #11097 from ralmn/ac-follow-redirection

ETQ Usager si je me connecte en Agent-Connect/Pro-Connect je veux être redirigé vers ma page d'origine
This commit is contained in:
Colin Darie 2024-12-02 13:59:49 +00:00 committed by GitHub
commit 0b99f6c847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ class AgentConnect::AgentController < ApplicationController
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