Build a clean URL by joining baseUrl and key, stripping any trailing slashes on the base and leading slashes on the key. Prevents the triple-slash bug observed when baseUrl includes a trailing / and the key starts with /.
baseUrl
key
/
Build a clean URL by joining
baseUrlandkey, stripping any trailing slashes on the base and leading slashes on the key. Prevents the triple-slash bug observed when baseUrl includes a trailing/and the key starts with/.