Merge pull request #2307 from umbraco/15/bugfix/fix-current-user-edit-path

Bugfix: update current user edit path to new navigation structure
This commit is contained in:
Niels Lyngsø
2024-09-17 16:25:11 +02:00
committed by GitHub
2 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { UMB_CURRENT_USER_CONTEXT } from '../current-user.context.token.js';
import { UMB_USER_WORKSPACE_PATH } from '@umbraco-cms/backoffice/user';
import { UmbActionBase } from '@umbraco-cms/backoffice/action';
import type { UmbCurrentUserAction, UmbCurrentUserActionArgs } from '@umbraco-cms/backoffice/extension-registry';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
@@ -29,7 +30,7 @@ export class UmbEditCurrentUserAction<ArgsMetaType = never>
async getHref() {
await this.#init;
return `section/user-management/view/users/user/edit/${this.#unique}`;
return UMB_USER_WORKSPACE_PATH + '/edit/' + this.#unique;
}
async execute() {

View File

@@ -1,9 +1,10 @@
export * from './collection/index.js';
export * from './components/index.js';
export * from './invite/index.js';
export * from './repository/index.js';
export type * from './types.js';
export * from './utils/index.js';
export * from './entity.js';
export * from './invite/index.js';
export * from './paths.js';
export * from './repository/index.js';
export * from './utils/index.js';
export type * from './types.js';
export { UMB_USER_PICKER_MODAL } from './modals/user-picker/index.js';