Skip to content

Commit 9455934

Browse files
authored
Merge pull request #2399 from umbraco/v15/hotfix/dictionary-collection-action-wrong-path
V15: Hotfix: Create dictionary collection action wrong path
2 parents 7c30d05 + 5eb35b1 commit 9455934

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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
{

src/packages/translation/menu/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
1414
name: 'Translation Sidebar Menu',
1515
weight: 100,
1616
meta: {
17-
label: '#sections_translation',
17+
label: '#general_dictionary', // We are using dictionary here on purpose until dictionary has its own menu item.
1818
menu: UMB_TRANSLATION_MENU_ALIAS,
1919
entityType: 'dictionary-root', // hard-coded on purpose to avoid circular dependency. We need another way to add actions to a menu kind.
2020
},

0 commit comments

Comments
 (0)