This is a magical solution to a non-issue (aesthetic), it could easily be introduced by a plugin and is not a good substitute for proper web server configuration. Eg, Apache:
##
## Directory Listing attempts
##
DirectorySlash Off
RewriteOptions AllowNoSlash
##
## Redirect Trailing Slashes...
##
RewriteRule ^(.*)/$ /$1 [L,R=301]
The /uploads directory has been moved to /storage/app/uploads to make way for CDN support. This directory should be moved on the file system and the config (cms.uploadsPath) updated.