Fatal error: Uncaught InvalidArgumentException: Cannot redirect to an empty URL. in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/RedirectResponse.php:76 Stack trace: #0 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/RedirectResponse.php(39): Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl('') #1 /var/www/html/src/Majisti/AppBundle/Listener/BrowserLocaleListener.php(69): Symfony\Component\HttpFoundation\RedirectResponse->__construct('') #2 [internal function]: Majisti\AppBundle\Listener\BrowserLocaleListener->onKernelRequest(Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #3 /var/www/html/app/cache/prod/classes.php(1840): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\GetResponseEvent), 'kernel.request', Object(Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher)) #4 /var/www/html/app/cache/prod/classes.php(1766): Symfony in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/RedirectResponse.php on line 76