Makes sure the path on the tree is correct
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user