8000 Fixed the previous merge · symfony/symfony-docs@1e7d0ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e7d0ea

Browse files
committed
Fixed the previous merge
1 parent 06b8e9b commit 1e7d0ea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

routing.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,12 @@ Now, when the user visits ``/blog``, the ``blog_list`` route will match and
533533

534534
If you want to always include some default value in the generated URL (for
535535
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}``
537537

538538
.. versionadded:: 4.3
539539
The feature to force the inclusion of default values in generated URLs was
540540
introduced in Symfony 4.3.
541541

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-
546542
As it happens with requirements, default values can also be inlined in each
547543
placeholder using the syntax ``{placeholder_name?default_value}``. This feature
548544
is compatible with inlined requirements, so you can inline both in a single

0 commit comments

Comments
 (0)
0