Skip to content

Commit 525dc4e

Browse files
author
Rick Mason
committed
Update trimming of paths so that it's compatible with non-root installs and tests pass
1 parent fdc69e5 commit 525dc4e

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?.Trim('/')}/{Constants.DefaultMediaRoute}/{fixedPath}";
668+
return $"{this.ApplicationVirtualPath?.TrimEnd('/')}/{Constants.DefaultMediaRoute}/{fixedPath}";
669669
}
670670

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

674674
/// <summary>

0 commit comments

Comments
 (0)