We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57c4ecb + bfc2841 commit 09c4964Copy full SHA for 09c4964
src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystem.cs
@@ -361,13 +361,16 @@ private string GetBlobPath(string path)
361
{
362
path = EnsureUrlSeparatorChar(path);
363
364
- if (_ioHelper.PathStartsWith(path, _containerRootPath, '/'))
+ if (!string.IsNullOrEmpty(_containerRootPath) &&
365
+ _ioHelper.PathStartsWith(path, _containerRootPath, '/'))
366
367
+ // Path already starts with the root path
368
return path;
369
}
370
371
if (_ioHelper.PathStartsWith(path, _rootUrl, '/'))
372
373
+ // Remove root URL from path (e.g. /media/abc123/file.ext to /abc123/file.ext)
374
path = path[_rootUrl.Length..];
375
376
0 commit comments