Prevent slash duplication.

Don't add trailing slash to external doc URL if it already ends with
one.