Skip to content

Commit 69f11e7

Browse files
committed
Added a versionadded directive
1 parent 19e9d0b commit 69f11e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

routing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,13 @@ Use the ``RedirectController`` to redirect to other routes and URLs:
14261426
Symfony also provides some utilities to
14271427
:ref:`redirect inside controllers <controller-redirect>`
14281428

1429+
.. versionadded:: 4.4
1430+
1431+
In Symfony versions prior to 4.4, you needed to define the specific
1432+
``RedirectController`` method to use (either ``redirectAction`` or
1433+
``urlRedirectAction``). Starting from Symfony 4.4 this is no longer needed
1434+
because Symfony detects if the redirection is to a route or an URL.
1435+
14291436
.. _routing-trailing-slash-redirection:
14301437

14311438
Redirecting URLs with Trailing Slashes

0 commit comments

Comments
 (0)