Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Symfony version | 4.0.4 |
On a classic Symfony setup, if we have a route with /en/blog
url, we will get a 404 error if we try /en/blog/
.
The documentation well explains how to handle that: https://symfony.com/doc/current/routing/redirect_trailing_slash.html
But I think it's a very common issue.
Why not proposing this as an option (IMHO, it should be activated by default) instead of telling the user to always write the same code? Reuse code is better than rewriting it. 👍
Of course, we may create a bundle instead. But I think this feature has his place on the internal Symfony codebase.