Skip to content

Commit 21783ca

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Document logout.target
2 parents 1e2a15f + 7bb3f94 commit 21783ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

reference/configuration/security.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,15 @@ the current firewall and not the other ones.
614614
The path which triggers logout. If you change it from the default value ``/logout``,
615615
you need to set up a route with a matching path.
616616

617+
target
618+
~~~~~~
619+
620+
**type**: ``string`` **default**: ``/``
621+
622+
The relative path (if the value starts with ``/``), or absolute URL (if it
623+
starts with ``http://`` or ``https://``) or the route name (otherwise) to
624+
redirect after logout.
625+
617626
success_handler
618627
~~~~~~~~~~~~~~~
619628

@@ -629,6 +638,8 @@ success_handler
629638
The service ID used for handling a successful logout. The service must implement
630639
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
631640

641+
If it is set, the logout ``target`` option will be ignored.
642+
632643
.. _reference-security-logout-csrf:
633644

634645
csrf_parameter

0 commit comments

Comments
 (0)