From e60b2bbb0e658d747a78673797a0ed7c9a777ccc Mon Sep 17 00:00:00 2001 From: Mathieu HIREL Date: Thu, 28 Nov 2024 13:34:15 +0100 Subject: [PATCH] feat: redirect to stored location after pro-connect connection --- app/controllers/agent_connect/agent_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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