Skip to content

Commit 3826ca9

Browse files
MatTheCatjaviereguiluz
authored andcommitted
Document logout.target
1 parent 8147243 commit 3826ca9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/configuration/security.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,13 @@ required by the :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`
593593
The path which triggers logout. If you change it from the default value ``/logout``,
594594
you need to set up a route with a matching path.
595595

596+
target
597+
~~~~~~
598+
599+
**type**: ``string`` **default**: ``/``
600+
601+
The route, path or URL to redirect to after logout.
602+
596603
success_handler
597604
~~~~~~~~~~~~~~~
598605

@@ -601,6 +608,8 @@ success_handler
601608
The service ID used for handling a successful logout. The service must implement
602609
:class:`Symfony\\Component\\Security\\Http\\Logout\\LogoutSuccessHandlerInterface`.
603610

611+
If it is set, ``target`` will be ignored.
612+
604613
.. _reference-security-logout-csrf:
605614

606615
csrf_parameter

0 commit comments

Comments
 (0)