diff --git a/umbraco/presentation/umbraco/developer/Python/editPython.aspx.cs b/umbraco/presentation/umbraco/developer/Python/editPython.aspx.cs index b50e3da7c3..b23a922c67 100644 --- a/umbraco/presentation/umbraco/developer/Python/editPython.aspx.cs +++ b/umbraco/presentation/umbraco/developer/Python/editPython.aspx.cs @@ -16,6 +16,7 @@ using System.Text.RegularExpressions; using umbraco.cms.businesslogic.macro; using umbraco.cms.presentation.Trees; using umbraco.IO; +using umbraco.cms.helpers; namespace umbraco.cms.presentation.developer { @@ -37,9 +38,11 @@ namespace umbraco.cms.presentation.developer if (!IsPostBack) { + string file = Request.QueryString["file"]; + string path = DeepLink.GetTreePathFromFilePath(file); ClientTools .SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree().Tree.Alias) - .SyncTree(Request.QueryString["file"], false); + .SyncTree(path, false); } }