Nice: in Symfony 4.1 we will finally be able to specify that an imported route shouldn’t have a trailing slash. To date, we’ve had to do a hack like:
route:
defaults:
slash: null
path: '{slash}'
requirements:
slash: '/?'
In 4.1, we will be able to make that route like:
route:
path: /
and then import it like:
_routes:
path: /routes
resource: '@RoutesBundle/resources/config/routing.yml'
trailing_slash_on_root: false