diff --git a/book/routing.rst b/book/routing.rst index c67f93031a6..5be5911137e 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -417,6 +417,12 @@ match, giving the ``page`` parameter a value of ``2``. Perfect. | /blog/2 | {page} = 2 | +---------+------------+ +.. tip:: + + Routes with optional parameters at the end will not match on requests + with a trailing slash (i.e. ``/blog/``). In this case the slash is a separator and + should not be used if the optional parameter isn't passed. + .. index:: single: Routing; Requirements