Skip to content

Commit c251a24

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Document logout.target
2 parents 4445ccb + 21783ca commit c251a24

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
@@ -644,6 +644,15 @@ the current firewall and not the other ones.
644644
The path which triggers logout. If you change it from the default value ``/logout``,
645645
you need to set up a route with a matching path.
646646

647+
target
648+
~~~~~~
649+
650+
**type**: ``string`` **default**: ``/``
651+
652+
The relative path (if the value starts with ``/``), or absolute URL (if it
653+
starts with ``http://`` or ``https://``) or the route name (otherwise) to
654+
redirect after logout.
655+
647656
success_handler
648657
~~~~~~~~~~~~~~~
649658

@@ -659,6 +668,8 @@ success_handler
659668
The service ID used for handling a successful logout. The service must implement
660669
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
661670

671+
If it is set, the logout ``target`` option will be ignored.
672+
662673
.. _reference-security-logout-csrf:
663674

664675
csrf_parameter

0 commit comments

Comments
 (0)