Skip to content
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
4 changes: 4 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,10 @@ other configuration formats they are defined with the ``defaults`` option:
Now, when the user visits ``/blog``, the ``blog_list`` route will match and
``$page`` will default to a value of ``1``.

.. tip::

The default value is allowed to not match the requirement.

.. warning::

You can have more than one optional parameter (e.g. ``/blog/{slug}/{page}``),
Expand Down