Skip to content

Commit ff5ecbc

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Add tip about default value
2 parents b3b3aca + 16c7ba0 commit ff5ecbc

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)