Skip to content

Commit 16c7ba0

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Add tip about default value
2 parents df56c8e + 85c7c5e commit 16c7ba0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,10 @@ other configuration formats they are defined with the ``defaults`` option:
908908
Now, when the user visits ``/blog``, the ``blog_list`` route will match and
909909
``$page`` will default to a value of ``1``.
910910

911+
.. tip::
912+
913+
The default value is allowed to not match the requirement.
914+
911915
.. warning::
912916

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

0 commit comments

Comments
 (0)