From 4bbc81a1145f8bfa7cbbfea8432e8b96c093fd0f Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Mon, 28 Aug 2017 11:07:56 +0200 Subject: [PATCH] Fixed an issue with redirect type not being properly set If a redirect was created from the global dashboard, the type/mode would always be set to "content", which obviously is wrong. The redirects would still work fine, but eg. a redirect for a media (created via the dashboard), wouldn't show up in the redirects proeprty editor of said media due to the wrong type being stored in the database. --- .../Scripts/Controllers/AddRedirectDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skybrud.Umbraco.Redirects/App_Plugins/Skybrud.Umbraco.Redirects/Scripts/Controllers/AddRedirectDialog.js b/src/Skybrud.Umbraco.Redirects/App_Plugins/Skybrud.Umbraco.Redirects/Scripts/Controllers/AddRedirectDialog.js index ea54624..369e541 100644 --- a/src/Skybrud.Umbraco.Redirects/App_Plugins/Skybrud.Umbraco.Redirects/Scripts/Controllers/AddRedirectDialog.js +++ b/src/Skybrud.Umbraco.Redirects/App_Plugins/Skybrud.Umbraco.Redirects/Scripts/Controllers/AddRedirectDialog.js @@ -90,7 +90,7 @@ var params = { rootNodeId: $scope.redirect.rootNodeId, url: $scope.redirect.url, - linkMode: $scope.type, + linkMode: $scope.redirect.link.mode, linkId: $scope.redirect.link.id, linkUrl: $scope.redirect.link.url, linkName: $scope.redirect.link.name