[#917] redirect to correct location after login with france connect
This commit is contained in:
parent
ddc1052daf
commit
afed93247d
6 changed files with 42 additions and 9 deletions
|
@ -28,7 +28,8 @@ class FranceConnectController < ApplicationController
|
|||
@user.save
|
||||
end
|
||||
|
||||
redirect_to(controller: 'users/dossiers', action: :index)
|
||||
redirect_to stored_location_for(current_user) || signed_in_root_path(current_user)
|
||||
|
||||
end
|
||||
rescue Rack::OAuth2::Client::Error => e
|
||||
Rails.logger.error e.message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue