From f057eca45ad2fae50ea1f48e8bb6b4e8cbb9366a Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 6 Jul 2016 11:14:59 +0200 Subject: [PATCH] Scratch that.. the Alias is actually the Name. Consistency FTW! --- .../umbraco/create/stylesheetPropertyTasks.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/create/stylesheetPropertyTasks.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/create/stylesheetPropertyTasks.cs index 2755b3501c..a27e550831 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/create/stylesheetPropertyTasks.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/create/stylesheetPropertyTasks.cs @@ -18,7 +18,8 @@ namespace umbraco s.AddProperty(new StylesheetProperty(Alias, "." + Alias.ToSafeAlias(), "")); ApplicationContext.Current.Services.FileService.SaveStylesheet(s); - _returnUrl = string.Format("settings/stylesheet/property/EditStyleSheetProperty.aspx?id={0}&prop={1}", HttpUtility.UrlEncode(s.Path), Alias); + // SJ - Note: The Alias is NOT in fact the alias but the name of the new property, need to UrlEncode it! + _returnUrl = string.Format("settings/stylesheet/property/EditStyleSheetProperty.aspx?id={0}&prop={1}", HttpUtility.UrlEncode(s.Path), HttpUtility.UrlEncode(Alias)); return true; }