I'm currently facing an issue I have no idea how to solve. For a route, I can have the following annotation :
@Route("/foo/{choice}", name="foo_route", defaults={"choice" = "bar"})
This route can be reached by :
- /foo/helloworld
- /foo/bar
- /foo
The last case is rather problematic. I would like the choice to be always visible in the url, even if it is the default choice. Is such a thing possible ?