Skip to content

Commit fdc69e5

Browse files
author
Rick Mason
committed
With Umbraco installed in the IIS root, media files were being uploaded with paths that started //media
1 parent cade168 commit fdc69e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,10 @@ private string ResolveUrl(string path, bool relative)
665665

666666
if (this.UseDefaultRoute)
667667
{
668-
return $"{this.ApplicationVirtualPath}/{Constants.DefaultMediaRoute}/{fixedPath}";
668+
return $"{this.ApplicationVirtualPath?.Trim('/')}/{Constants.DefaultMediaRoute}/{fixedPath}";
669669
}
670670

671-
return $"{this.ApplicationVirtualPath}/{this.ContainerName}/{fixedPath}";
671+
return $"{this.ApplicationVirtualPath?.Trim('/')}/{this.ContainerName}/{fixedPath}";
672672
}
673673

674674
/// <summary>

0 commit comments

Comments
 (0)