diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.recyclebin.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.recyclebin.controller.js index a644e52a2c..f72075149c 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.recyclebin.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.recyclebin.controller.js @@ -8,7 +8,7 @@ * */ -function ContentRecycleBinController($scope, $routeParams, dataTypeResource) { +function ContentRecycleBinController($scope, $routeParams, dataTypeResource, navigationService) { //ensures the list view doesn't actually load until we query for the list view config // for the section @@ -24,6 +24,8 @@ function ContentRecycleBinController($scope, $routeParams, dataTypeResource) { $scope.model = { config: { entityType: $routeParams.section } }; + // sync tree node + navigationService.syncTree({ tree: "content", path: ["-1", $routeParams.id], forceReload: false }); } angular.module('umbraco').controller("Umbraco.Editors.Content.RecycleBinController", ContentRecycleBinController); diff --git a/src/Umbraco.Web.UI.Client/src/views/media/media.recyclebin.controller.js b/src/Umbraco.Web.UI.Client/src/views/media/media.recyclebin.controller.js index bedb1e4da1..6f4bdc11e2 100644 --- a/src/Umbraco.Web.UI.Client/src/views/media/media.recyclebin.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/media/media.recyclebin.controller.js @@ -8,7 +8,7 @@ * */ -function MediaRecycleBinController($scope, $routeParams, dataTypeResource) { +function MediaRecycleBinController($scope, $routeParams, dataTypeResource, navigationService) { //ensures the list view doesn't actually load until we query for the list view config // for the section @@ -24,6 +24,8 @@ function MediaRecycleBinController($scope, $routeParams, dataTypeResource) { $scope.model = { config: { entityType: $routeParams.section } }; + // sync tree node + navigationService.syncTree({ tree: "media", path: ["-1", $routeParams.id], forceReload: false }); } angular.module('umbraco').controller("Umbraco.Editors.Media.RecycleBinController", MediaRecycleBinController);