From eff97bfae32f72821cbccf0b48b78351e41eb585 Mon Sep 17 00:00:00 2001 From: Giovanni Blu Mitolo Date: Thu, 22 Oct 2015 17:32:01 +0200 Subject: [PATCH] Remove query string from redirect_uri on callback --- lib/omniauth/strategies/facebook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/facebook.rb b/lib/omniauth/strategies/facebook.rb index 414173b..5ff09ee 100644 --- a/lib/omniauth/strategies/facebook.rb +++ b/lib/omniauth/strategies/facebook.rb @@ -83,7 +83,7 @@ module OmniAuth if @authorization_code_from_signed_request_in_cookie '' else - options[:callback_url] || super + options[:callback_url] || (full_host + script_name + callback_path) end end