diff --git a/app/controllers/agent_connect/agent_controller.rb b/app/controllers/agent_connect/agent_controller.rb index 973f67699..56de677b1 100644 --- a/app/controllers/agent_connect/agent_controller.rb +++ b/app/controllers/agent_connect/agent_controller.rb @@ -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