8000 Adding note about referer login behavior that's new to 2.1 · mehdimabrouk/symfony-docs@8ca9b85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ca9b85

Browse files
committed
Adding note about referer login behavior that's new to 2.1
1 parent 387775c commit 8ca9b85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cookbook/security/form_login.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Using the Referring URL
208208
~~~~~~~~~~~~~~~~~~~~~~~
209209

210210
In case no previous URL was stored in the session, you may wish to try using
211-
the ``HTTP_REFERER`` instead, as this will often be the same. You can do
211+
the ``HTTP_REFERER`` instead, as this will oft 8609 en be the same. You can do
212212
this by setting ``use_referer`` to true (it defaults to false):
213213

214214
.. configuration-block::
@@ -246,6 +246,10 @@ this by setting ``use_referer`` to true (it defaults to false):
246246
),
247247
));
248248
249+
.. versionadded:: 2.1
250+
As of 2.1, if the referer is equal to the ``login_path`` option, the
251+
user will be redirected to the ``default_target_path``.
252+
249253
Control the Redirect URL from inside the Form
250254
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
251255

0 commit comments

Comments
 (0)
0