Exception detected!

Cannot redirect to an empty URL.

500 Internal Server Error - InvalidArgumentException

Stack Trace

  1. in vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/RedirectResponse.php at line 41  -
    1.     public function __construct($url$status 302$headers = array())
    2.     {
    3.         if (empty($url)) {
    4.             throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
    5.         }
    6.         parent::__construct(''$status$headers);
  2. at RedirectResponse ->__construct ('', '302')
    in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 82  +
  3. at Controller ->redirect ('')
    in src/Brain/Bundle/HomeBundle/Controller/DefaultController.php at line 127  +
  4. at DefaultController ->switchLanguageAction (object(Request))
  5. at call_user_func_array (array(object(DefaultController), 'switchLanguageAction'), array(object(Request)))
    in app/bootstrap.php.cache at line 3039  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3001  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3150  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2391  +
  9. at Kernel ->handle (object(Request))
    in app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +