Skip to content

Commit de06603

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: Add tip about default value
2 parents bf50757 + ff5ecbc commit de06603

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

920+
.. tip::
921+
922+
The default value is allowed to not match the requirement.
923+
920924
.. warning::
921925

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

0 commit comments

Comments
 (0)