File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Original file line number Diff line number Diff line change @@ -533,16 +533,12 @@ Now, when the user visits ``/blog``, the ``blog_list`` route will match and
533
533
534
534
If you want to always include some default value in the generated URL (for
535
535
example to force the generation of ``/blog/1 `` instead of ``/blog `` in the
536
- previous example) add the ``! `` character before the placeholder: ``/blog/{!page} ``
536
+ previous example) add the ``! `` character before the placeholder name : ``/blog/{!page} ``
537
537
538
538
.. versionadded :: 4.3
539
539
The feature to force the inclusion of default values in generated URLs was
540
540
introduced in Symfony 4.3.
541
541
542
- When you generate URL for path ``blog_list `` without adding ``page `` parameter Router
543
- will generate ``/blog/ ``. Note that it doesn't use default value ``1 ``. To generate
544
- ``/blog/1 `` mark variable as important adding ``! `` before the name: ``/blog/{!page} ``.
545
-
546
542
As it happens with requirements, default values can also be inlined in each
547
543
placeholder using the syntax ``{placeholder_name?default_value} ``. This feature
548
544
is compatible with inlined requirements, so you can inline both in a single
You can’t perform that action at this time.
0 commit comments