Skip to content

Commit e29f620

Browse files
authored
Merge pull request #2307 from umbraco/15/bugfix/fix-current-user-edit-path
Bugfix: update current user edit path to new navigation structure
2 parents cd1c098 + fca7fbf commit e29f620

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/packages/user/current-user/profile/edit-current-user.action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
2+
import { UMB_USER_WORKSPACE_PATH } from '@umbraco-cms/backoffice/user';
23
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
34
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
45
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
@@ -29,7 +30,7 @@ export class UmbEditCurrentUserAction<ArgsMetaType = never>
2930

3031
async getHref() {
3132
await this.#init;
32-
return `section/user-management/view/users/user/edit/${this.#unique}`;
33+
return UMB_USER_WORKSPACE_PATH + '/edit/' + this.#unique;
3334
}
3435

3536
async execute() {

src/packages/user/user/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
export * from './collection/index.js';
22
export * from './components/index.js';
3+
export * from './entity.js';
34
export * from './invite/index.js';
5+
export * from './paths.js';
46
export * from './repository/index.js';
5-
export type * from './types.js';
67
export * from './utils/index.js';
7-
export * from './entity.js';
8+
export type * from './types.js';
89

910
export { UMB_USER_PICKER_MODAL } from './modals/user-picker/index.js';

0 commit comments

Comments
 (0)