From 89bdbf500e080934fc4be30e0fd1d550dfdf16ed Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 2 Aug 2018 10:47:53 +0200 Subject: [PATCH] Revert "Fixed issue with creating doctypes & templated with an Ampersand : http://issues.umbraco.org/issue/U4-11550 (#2828)" Revert "We need to create the template from it's alias, which is the safeAlias, which is the correct filename" This reverts commit 9663cfde82f68039a10a758fb2755152fbc2cb23 and commit 11aea0f51510d9981f3211fe0afe86ed99f850a3 --- .../src/common/resources/entity.resource.js | 2 +- src/Umbraco.Web/Editors/TemplateController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js index 780a336fce..72f8ad5539 100644 --- a/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js +++ b/src/Umbraco.Web.UI.Client/src/common/resources/entity.resource.js @@ -46,7 +46,7 @@ function entityResource($q, $http, umbRequestHelper) { $http.get( umbRequestHelper.getApiUrl( "entityApiBaseUrl", - "GetSafeAlias", { value: encodeURIComponent(value), camelCase: camelCase })), + "GetSafeAlias", { value: value, camelCase: camelCase })), 'Failed to retrieve content type scaffold'); }, diff --git a/src/Umbraco.Web/Editors/TemplateController.cs b/src/Umbraco.Web/Editors/TemplateController.cs index e38f08665e..100a266dff 100644 --- a/src/Umbraco.Web/Editors/TemplateController.cs +++ b/src/Umbraco.Web/Editors/TemplateController.cs @@ -184,7 +184,7 @@ namespace Umbraco.Web.Editors throw new HttpResponseException(HttpStatusCode.NotFound); } - var template = Services.FileService.CreateTemplateWithIdentity(display.Alias, display.Content, master); + var template = Services.FileService.CreateTemplateWithIdentity(display.Name, display.Content, master); Mapper.Map(template, display); }