Skip to content

Update routing.rst #12646

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

Merged
merged 1 commit into from
Nov 23, 2019
Merged
Changes from all commits
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
5 changes: 2 additions & 3 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1098,10 +1098,9 @@ A possible solution is to change the parameter requirements to be more permissiv
.. note::

If the route defines several parameter and you apply this permissive
regular expression to all of them, the results won't be the expected. For
regular expression to all of them. For
example, if the route definition is ``/share/{path}/{token}`` and both
``path`` and ``token`` accept ``/``, then ``path`` will contain its contents
and the token, and ``token`` will be empty.
``path`` and ``token`` accept ``/``. The ``token`` only get the last path and the rest of the match is matched by the first argument (``path``).

.. note::

Expand Down