"Routes with optional parameters at the end will not match on requests with a trailing slash" isn't true · Issue #12444 · symfony/symfony-docs · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a note is saying Routes with optional parameters at the end will not match on requests with a trailing slash (i.e. /blog/ will not match, /blog will match).
now I have created an optional @Route("/blog/{page<\d+>}") and tried /blog/ on chrome and it matched the route that I have already set to a default int $page = 0
The text was updated successfully, but these errors were encountered:
Hi,
It seems you are correct !
According to symfony/symfony#26283 this note is no longer relevant since v4.1.0-BETA1.
I'll edit the doc this afternoon (at least I'll try to do my first PR).
Cheers.
thbil
added a commit
to thbil/symfony-docs
that referenced
this issue
Oct 14, 2019
here
a note is saying
Routes with optional parameters at the end will not match on requests with a trailing slash (i.e. /blog/ will not match, /blog will match).
now I have created an optional
@Route("/blog/{page<\d+>}")
and tried /blog/ on chrome and it matched the route that I have already set to a defaultint $page = 0
The text was updated successfully, but these errors were encountered: