From 7f42cbba2cd6da53c0b1ff142ef74fbdc492c485 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 1 Mar 2024 11:47:15 +0100 Subject: [PATCH] add entityType to create path --- .../data-type/workspace/data-type-workspace.element.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.element.ts index 535b72d31a..d88fed9644 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.element.ts @@ -13,11 +13,12 @@ export class UmbDataTypeWorkspaceElement extends UmbLitElement { private _routes: UmbRoute[] = [ { - path: 'create/:parentUnique', + path: 'create/parent/:entityType/:parentUnique', component: this.#createElement, setup: (_component, info) => { + const parentEntityType = info.match.params.entityType; const parentUnique = info.match.params.parentUnique === 'null' ? null : info.match.params.parentUnique; - this.#workspaceContext.create(parentUnique); + this.#workspaceContext.create({ entityType: parentEntityType, unique: parentUnique }); new UmbWorkspaceIsNewRedirectController( this,