New in Symfony 4.1: Smarter URL redirections

Historically, URLs have followed the UNIX convention of adding trailing slashes
for directories and removing them to refer to files:

https://example.com/foo/ is usually considered a directory called foo

https://example.com/foo is usually considered a file called foo
without any file extension.

Although serving different content for /foo and /foo/is OK for Google, nowadays it's common to treat both URLs as the same URL and
redirect between them.

Since day one Symfony has helped you in one of the two sides of this problem. If
you define a route with a path ending with a slash, both URLs work and the one
without slash redirects to the other one: