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}``), pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy