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:
commit
0b99f6c847
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue