diff --git a/Controller/ConnectController.php b/Controller/ConnectController.php
index <HASH>..<HASH> 100644
--- a/Controller/ConnectController.php
+++ b/Controller/ConnectController.php
@@ -271,7 +271,8 @@ class ConnectController extends Controller
             }
         }
 
-        return $this->redirect($authorizationUrl);
+        $this->redirect($authorizationUrl)->sendHeaders();
+        return new RedirectResponse($authorizationUrl);
     }
 
     /**
redirectToServiceAction is not redirecting (SF2 <I>)

redirectToServiceAction is not redirect, in order to work I have done this change.