Makes sure the path on the tree is correct

This commit is contained in:
Sebastiaan Janssen
2018-10-21 18:57:07 +02:00
parent 2c14f396fb
commit 04aa199266

View File

@@ -8,6 +8,7 @@ using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using Umbraco.Core;
using Umbraco.Core.IO;
namespace umbraco.cms.presentation.Trees
@@ -41,8 +42,8 @@ namespace umbraco.cms.presentation.Trees
string path = "";
if (!string.IsNullOrEmpty(this.NodeKey))
{
orgPath = this.NodeKey;
path = IOHelper.MapPath(FilePath+ "/" + orgPath + "/");
orgPath = this.NodeKey.EnsureEndsWith('/');
path = IOHelper.MapPath($"{FilePath.EnsureEndsWith('/')}{orgPath}");
}
else
{