diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/collection/action/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/collection/action/manifests.ts index 0a48feecbe..181946452e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/collection/action/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/collection/action/manifests.ts @@ -1,3 +1,4 @@ +import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../../entity.js'; import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection'; import type { ManifestCollectionAction } from '@umbraco-cms/backoffice/extension-registry'; @@ -9,7 +10,7 @@ export const createManifest: ManifestCollectionAction = { weight: 200, meta: { label: 'Create', - href: 'section/dictionary/workspace/dictionary/create/null', + href: `section/dictionary/workspace/dictionary/create/parent/${UMB_DICTIONARY_ROOT_ENTITY_TYPE}/null`, }, conditions: [ { diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/entity-action/create/create.action.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/entity-action/create/create.action.ts index ee39199b82..05bc35c411 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/entity-action/create/create.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/entity-action/create/create.action.ts @@ -8,6 +8,10 @@ export default class UmbCreateDictionaryEntityAction extends UmbEntityActionBase } async execute() { - history.pushState({}, '', `/section/dictionary/workspace/dictionary/create/${this.unique ?? 'null'}`); + history.pushState( + {}, + '', + `/section/dictionary/workspace/dictionary/create/parent/${this.entityType}/${this.unique ?? 'null'}`, + ); } }