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