Fixes issue with redirect
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Umbraco.Core.Models.Packaging
|
||||
public string LoadControl { get; set; } = string.Empty;
|
||||
|
||||
[DataMember(Name = "actions")]
|
||||
public string Actions { get; set; }
|
||||
public string Actions { get; set; } = "<actions></actions>";
|
||||
|
||||
[DataMember(Name = "dataTypes")]
|
||||
public IList<string> DataTypes { get; set; } = new List<string>();
|
||||
|
||||
@@ -598,7 +598,7 @@ namespace Umbraco.Core.Packaging
|
||||
Author = xml.Element("author")?.Value ?? string.Empty,
|
||||
AuthorUrl = xml.Element("author")?.AttributeValue<string>("url") ?? string.Empty,
|
||||
Readme = xml.Element("readme")?.Value ?? string.Empty,
|
||||
Actions = xml.Element("actions")?.ToString(SaveOptions.None) ?? string.Empty, //take the entire outer xml value
|
||||
Actions = xml.Element("actions")?.ToString(SaveOptions.None) ?? "<actions></actions>", //take the entire outer xml value
|
||||
ContentNodeId = xml.Element("content")?.AttributeValue<string>("nodeId") ?? string.Empty,
|
||||
ContentLoadChildNodes = xml.Element("content")?.AttributeValue<bool>("loadChildNodes") ?? false,
|
||||
Macros = xml.Element("macros")?.Value.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries).ToList() ?? new List<string>(),
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
if (create) {
|
||||
//if we are creating, then redirect to the correct url and reload
|
||||
$location.path("packages/packages/overview/" + vm.package.id).search("subview", "created");
|
||||
$location.path("packages/packages/edit/" + vm.package.id).search("subview", "created").search("create", null);
|
||||
//don't add a browser history for this
|
||||
$location.replace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user