diff --git a/src/Orchard.Azure/AzureFileSystem.cs b/src/Orchard.Azure/AzureFileSystem.cs index f258e2f8b..5c690c521 100644 --- a/src/Orchard.Azure/AzureFileSystem.cs +++ b/src/Orchard.Azure/AzureFileSystem.cs @@ -256,7 +256,7 @@ namespace Orchard.Azure { } public string GetPath() { - return _blob.Uri.ToString().Substring(_rootPath.Length+1); + return _blob.Uri.ToString().Substring(_rootPath.Length).Trim('/'); } public string GetName() { @@ -300,7 +300,7 @@ namespace Orchard.Azure { } public string GetPath() { - return _blob.Uri.ToString().Substring(_rootPath.Length + 1).TrimEnd('/'); + return _blob.Uri.ToString().Substring(_rootPath.Length).Trim('/'); } public long GetSize() {