diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts index 298fb67aa9..d0e94a4863 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/tree/tree-item-base/tree-item-base.context.ts @@ -14,6 +14,7 @@ import { } from '@umbraco-cms/backoffice/context-api'; import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extensions-api'; import type { TreeItemPresentationModel } from '@umbraco-cms/backoffice/backend-api'; +import { urlFriendlyPathFromServerPath } from 'src/backoffice/templating/utils'; // add type for unique function export type UmbTreeItemUniqueFunction = (x: T) => string | null | undefined; @@ -126,7 +127,7 @@ export class UmbTreeItemContextBase { if (!pathname) return; - const path = this.#constructPath(pathname, this.type, this.unique); + const path = this.constructPath(pathname, this.type, this.unique); this.#path.next(path); }); } @@ -143,8 +144,8 @@ export class UmbTreeItemContextBase