From 344754950f6925c955712e626b1819e232caf679 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Thu, 6 Feb 2025 12:10:07 +0000 Subject: [PATCH] Creating a Template via a new DocType uses the doc-type name, so that the server can case it accordingly for the template filename. re: https://github.com/umbraco/Umbraco-CMS/issues/17458#issuecomment-2639213085 --- .../workspace/document-type/document-type-workspace.context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type/document-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type/document-type-workspace.context.ts index b021ca19a13b..36aafa5aa8b2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type/document-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/document-types/workspace/document-type/document-type-workspace.context.ts @@ -169,7 +169,7 @@ export class UmbDocumentTypeWorkspaceContext async #createAndAssignTemplate() { const { data: templateScaffold } = await this.#templateRepository.createScaffold({ name: this.getName(), - alias: this.getAlias(), + alias: this.getName(), // NOTE: Uses "name" over alias, as the server handle the template filename. [LK] }); if (!templateScaffold) throw new Error('Could not create template scaffold');