diff --git a/app/models/france_connect_particulier_client.rb b/app/models/france_connect_particulier_client.rb index 29e3d64bdaa..b87afc5e504 100644 --- a/app/models/france_connect_particulier_client.rb +++ b/app/models/france_connect_particulier_client.rb @@ -3,9 +3,10 @@ def initialize(code = nil) config = FRANCE_CONNECT[:particulier] # TODO: remove this block when migration to new domain is done - if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST") - config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host) - end + # dirty hack to redirect to the right domain + # if !Rails.env.test? && Current.host != ENV.fetch("APP_HOST") + # config[:redirect_uri] = config[:redirect_uri].gsub(ENV.fetch("APP_HOST"), Current.host) + # end super(config)