Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clarify routing documentation on trailing optional parameters #1873

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 3 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
Fixing indentation
  • Loading branch information
chrismcmacken committed Oct 31, 2012
commit 579ff9d31fe8b59016fdb33f571a19dcd75a363c
4 changes: 2 additions & 2 deletions book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ match, giving the ``page`` parameter a value of ``2``. Perfect.
.. tip::

Routes with optional parameters at the end will not match on requests
with a trailing slash (i.e. /blog/). In this case the slash is a separator and
should not be used if the optional parameter isn't passed.
with a trailing slash (i.e. /blog/). In this case the slash is a separator and
Copy link
Member

Choose a reason for hiding this comment

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

You should use a double backtick around /blog/:

with a trailing slash (i.e. ``/blog/``). In this case the slash is a seperator and

should not be used if the optional parameter isn't passed.

.. index::
single: Routing; Requirements
Expand Down