diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/tree/folder/script-folder.server.data-source.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/tree/folder/script-folder.server.data-source.ts index c5819f140e..83759f1752 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/tree/folder/script-folder.server.data-source.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/scripts/tree/folder/script-folder.server.data-source.ts @@ -81,7 +81,7 @@ export class UmbScriptFolderServerDataSource implements UmbFolderDataSource { if (!error) { /* TODO: investigate why we don't get the location header as part of data, so we don't have to construct the path ourselves */ - const newPath = `${parentPath}/${args.name}`; + const newPath = parentPath ? `${parentPath}/${args.name}` : args.name; return this.read(newPath); }