8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a58612 commit 7a7a842Copy full SHA for 7a7a842
reference/configuration/security.rst
@@ -348,7 +348,14 @@ use_referer
348
**type**: ``boolean`` **default**: ``false``
349
350
If ``true``, the user is redirected to the value stored in the ``HTTP_REFERER``
351
-header when no previous URL was stored in the session.
+header when no previous URL was stored in the session. If the referrer URL is
352
+the same as the one generated with the ``login_path`` route, the user is
353
+redirected to the ``default_target_path`` to avoid a redirection loop.
354
+
355
+.. note::
356
357
+ For historical reasons, and to match the misspelling of the HTTP standard,
358
+ the option is called ``use_referer`` instead of ``use_referrer``.
359
360
.. _reference-security-pbkdf2:
361
0 commit comments