Skip to content

Commit

Permalink
Redirects are now absolute
Browse files Browse the repository at this point in the history
According to w3c locations need to be absolute:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30
  • Loading branch information
stepotronic authored and fabpot committed Aug 28, 2012
1 parent 9a355e9 commit 352e8f5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 352e8f5

Please sign in to comment.