Check for ~/ before using IOHelper.ResolveUrl

An "relative virtual path" exception can be thrown by a path like "umbraco/test.js"
This commit is contained in:
Shannon
2015-07-16 09:45:18 +02:00
parent 872c345ac9
commit 90645e5e85

View File

@@ -475,7 +475,7 @@ namespace Umbraco.Web.Editors
if (isValid)
{
//it is a valid URL add to Url list
urlList.Add(IOHelper.ResolveUrl(jsFile));
urlList.Add(jsFile.StartsWith("~/") ? IOHelper.ResolveUrl(jsFile) : jsFile);
}
}
else