Skip to content

Commit 116c39a

Browse files
committed
minor #15353 [Security] Document logout.target (MatTheCat)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead. Discussion ---------- [Security] Document logout.target Fixes #15352 and #5751 Commits ------- 3826ca9 Document logout.target
2 parents 8147243 + 3826ca9 commit 116c39a

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)