From 9af77e5f5137237a9c074d0a951fec21dfacb2e6 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Fri, 27 Nov 2020 21:53:31 +0100 Subject: [PATCH] Add temp logging, to debug azure pipeline Signed-off-by: Bjarke Berg --- src/Umbraco.Core/IO/IOHelper.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/IO/IOHelper.cs b/src/Umbraco.Core/IO/IOHelper.cs index 4ec7cac670..903b6e4a5c 100644 --- a/src/Umbraco.Core/IO/IOHelper.cs +++ b/src/Umbraco.Core/IO/IOHelper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; @@ -127,7 +128,10 @@ namespace Umbraco.Core.IO var mappedRoot = MapPath(_hostingEnvironment.ApplicationVirtualPath); if (!PathStartsWith(filePath, mappedRoot)) - filePath = _hostingEnvironment.MapPathContentRoot(filePath); + { + // TODO this is going to fail.. Scripts Stylesheets need to use WebRoot, PartialViews need to use ContentRoot + filePath = _hostingEnvironment.MapPathWebRoot(filePath); + } // yes we can (see above) //// don't trust what we get, it may contain relative segments