Migrated more tests + Aligned IHostingEnvironment.ToAbsolute implementation with expectations from old tests

This commit is contained in:
Bjarke Berg
2020-09-30 14:54:53 +02:00
parent d74e18a15d
commit aa3049fded
11 changed files with 124 additions and 214 deletions

View File

@@ -100,7 +100,7 @@ namespace Umbraco.Web.Common.AspNetCore
if (Uri.IsWellFormedUriString(virtualPath, UriKind.Absolute))
return virtualPath;
var fullPath = ApplicationVirtualPath.EnsureEndsWith('/') + virtualPath.TrimStart("~/");
var fullPath = ApplicationVirtualPath.EnsureEndsWith('/') + virtualPath.TrimStart("~/").TrimStart("/");
return fullPath;
}