From 352e8f583c87c709de197bb16c4053d2e87fd4cd Mon Sep 17 00:00:00 2001 From: Thorsten Hallwas Date: Thu, 26 Jul 2012 16:55:31 +0300 Subject: [PATCH] Redirects are now absolute According to w3c locations need to be absolute: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 --- .../Bundle/FrameworkBundle/Controller/RedirectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php index 2cb84746fa96..10d0a90a7011 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php @@ -45,7 +45,7 @@ public function redirectAction($route, $permanent = false) $attributes = $this->container->get('request')->attributes->all(); unset($attributes['_route'], $attributes['route'], $attributes['permanent'] ); - return new RedirectResponse($this->container->get('router')->generate($route, $attributes), $permanent ? 301 : 302); + return new RedirectResponse($this->container->get('router')->generate($route, $attributes, true), $permanent ? 301 : 302); } /**