Scratch that.. the Alias is actually the Name. Consistency FTW!

This commit is contained in:
Sebastiaan Janssen
2016-07-06 11:14:59 +02:00
parent b395d1a049
commit f057eca45a

View File

@@ -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;
}