Skip to content

Commit eea37b9

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Add tip about default value
2 parents ee71337 + de06603 commit eea37b9

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
@@ -913,6 +913,10 @@ other configuration formats they are defined with the ``defaults`` option:
913913
Now, when the user visits ``/blog``, the ``blog_list`` route will match and
914914
``$page`` will default to a value of ``1``.
915915

916+
.. tip::
917+
918+
The default value is allowed to not match the requirement.
919+
916920
.. warning::
917921

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

0 commit comments

Comments
 (0)