From 59944896f28c11bf9d94e03b6f04cea33426eda8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 18 Feb 2016 14:55:37 +0100 Subject: [PATCH] documented the $url parameter better --- src/Symfony/Component/HttpFoundation/RedirectResponse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/RedirectResponse.php b/src/Symfony/Component/HttpFoundation/RedirectResponse.php index e7f47aa259..18d5794c0b 100644 --- a/src/Symfony/Component/HttpFoundation/RedirectResponse.php +++ b/src/Symfony/Component/HttpFoundation/RedirectResponse.php @@ -23,7 +23,8 @@ class RedirectResponse extends Response /** * Creates a redirect response so that it conforms to the rules defined for a redirect status code. * - * @param string $url The URL to redirect to + * @param string $url The URL to redirect to. The URL should be a full URL, with schema etc., + * but practically every browser redirects on paths only as well * @param int $status The status code (302 by default) * @param array $headers The headers (Location is always set to the given URL) *