Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e7d0ea

Browse filesBrowse files
committed
Fixed the previous merge
1 parent 06b8e9b commit 1e7d0ea
Copy full SHA for 1e7d0ea

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+1-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.