Trailing slashes are removed from directory indexes as well as from any URL path not ending in a file extension.