Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Reworded the article about form login redirects #8192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added some help notes
  • Loading branch information
javiereguiluz committed Jul 20, 2017
commit e4ee5186d7eb46906631504484e29544ec4c8e41
12 changes: 11 additions & 1 deletion 12 security/form_login.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Using the Referring URL
~~~~~~~~~~~~~~~~~~~~~~~

In case no previous URL was stored in the session and no ``_target_path``
parameter is included in the request, you may wish to try using the value of the
parameter is included in the request, you may use the value of the
``HTTP_REFERER`` header instead, as this will often be the same. Define the
``use_referer`` boolean option to enable this behavior:

Expand Down Expand Up @@ -246,6 +246,16 @@ parameter is included in the request, you may wish to try using the value of the
),
));

.. note::

For historical reasons, and to match the misspelling of the HTTP standard,
the option is called ``use_referer`` instead of ``use_referrer``.

.. note::

The referrer URL is only used when is different from the URL generated by
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] when it is [...]

the ``login_path`` route, to avoid a redirection loop.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comma should be removed


.. _redirecting-on-login-failure:

Redirecting after Failure
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.