Skip to content

Commit 01b046e

Browse files
committed
fix path by using the path pattern const
1 parent 060d881 commit 01b046e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/packages/dictionary/collection/action/manifests.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../../entity.js';
2+
import { UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN } from '../../workspace/index.js';
23
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
34

5+
const createPath = UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN.generateAbsolute({
6+
parentEntityType: UMB_DICTIONARY_ROOT_ENTITY_TYPE,
7+
parentUnique: null,
8+
});
9+
410
export const manifests: Array<UmbExtensionManifest> = [
511
{
612
type: 'collectionAction',
@@ -10,7 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
1016
weight: 200,
1117
meta: {
1218
label: '#general_create',
13-
href: `section/dictionary/workspace/dictionary/create/parent/${UMB_DICTIONARY_ROOT_ENTITY_TYPE}/null`,
19+
href: createPath,
1420
},
1521
conditions: [
1622
{

0 commit comments

Comments
 (0)