Skip to content

Commit

Permalink
#H5IS
Browse files Browse the repository at this point in the history
Editing a redirect should obviously also work with rootNodeId.
  • Loading branch information
abjerner committed Mar 23, 2017
1 parent 09549da commit f5cf2ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

var params = {
redirectId: $scope.redirect.uniqueId,
rootNodeId: $scope.redirect.rootNodeId,
url: $scope.redirect.url,
linkMode: 'content',
linkId: $scope.redirect.link.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public object AddRedirect(int rootNodeId, string url, string linkMode, int linkI
}

[HttpGet]
public object EditRedirect(string redirectId, string url, string linkMode, int linkId, string linkUrl, string linkName = null) {
public object EditRedirect(int rootNodeId, string redirectId, string url, string linkMode, int linkId, string linkUrl, string linkName = null) {

try {

Expand All @@ -146,6 +146,7 @@ public object EditRedirect(string redirectId, string url, string linkMode, int l
url = urlParts[0].TrimEnd('/');
string query = urlParts.Length == 2 ? urlParts[1] : "";

redirect.RootNodeId = rootNodeId;
redirect.Url = url;
redirect.QueryString = query;
redirect.Link = link;
Expand Down

0 comments on commit f5cf2ff

Please sign in to comment.