Skip to content

Commit 05c7f78

Browse files
committed
minor #15098 [Routing] Fix the matched path value (mostefamed)
This PR was merged into the 4.4 branch. Discussion ---------- [Routing] Fix the matched path value During the test of the example, I didn't get the expected result when calling /blog <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 97a164d Fix the matched path value
2 parents fd00af8 + 97a164d commit 05c7f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ the common configuration using options when importing the routes.
12641264
was introduced in Symfony 4.4.
12651265

12661266
In this example, the route of the ``index()`` action will be called ``blog_index``
1267-
and its URL will be ``/blog/``. The route of the ``show()`` action will be called
1267+
and its URL will be ``/blog/{_locale}``. The route of the ``show()`` action will be called
12681268
``blog_show`` and its URL will be ``/blog/{_locale}/posts/{slug}``. Both routes
12691269
will also validate that the ``_locale`` parameter matches the regular expression
12701270
defined in the class annotation.

0 commit comments

Comments
 (0)