According to the Flask documentation in https://flask.readthedocs.org/en/latest/api/#url-route-registrations:

```
If a rule ends with a slash and is requested without a slash by 
the user, the user is automatically redirected to the same page
with a trailing slash attached.
```