From 5fd4e234ad29b54b252dee8f0f779b5b85875aeb Mon Sep 17 00:00:00 2001 From: tcoch Date: Tue, 15 Jul 2025 11:20:08 +0200 Subject: [PATCH] Add tip about default value --- routing.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing.rst b/routing.rst index 58f3fa28c80..102aef454f0 100644 --- a/routing.rst +++ b/routing.rst @@ -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}``),