Fixes: U4-3655 Clicking on recycle bin in media section redirects you back to the content tree
This commit is contained in:
@@ -68,7 +68,7 @@ app.config(function ($routeProvider) {
|
||||
},
|
||||
resolve: checkAuth(true)
|
||||
})
|
||||
.when('/:section/:method', {
|
||||
.when('/:section/:tree/:method', {
|
||||
templateUrl: function (rp) {
|
||||
if (!rp.method)
|
||||
return "views/common/dashboard.html";
|
||||
@@ -79,7 +79,7 @@ app.config(function ($routeProvider) {
|
||||
// angular dashboards working. Perhaps a normal section dashboard would list out the registered
|
||||
// dashboards (as tabs if we wanted) and each tab could actually be a route link to one of these views?
|
||||
|
||||
return 'views/' + rp.section + '/' + rp.method + '.html';
|
||||
return 'views/' + rp.tree + '/' + rp.method + '.html';
|
||||
},
|
||||
resolve: checkAuth(true)
|
||||
})
|
||||
|
||||
@@ -111,7 +111,11 @@ namespace Umbraco.Web.Trees
|
||||
ui.GetText("general", "recycleBin"),
|
||||
"icon-trash",
|
||||
RecycleBinSmells,
|
||||
queryStrings.GetValue<string>("application") + TreeAlias.EnsureStartsWith('/') + "/recyclebin"));
|
||||
//TODO: This would be nice to enable so we can have a nice recyclebin view, see the NOTE: in the routes.js angular file
|
||||
// for the time being we'll just load the dashboard of the section.
|
||||
//queryStrings.GetValue<string>("application") + TreeAlias.EnsureStartsWith('/') + "/recyclebin"));
|
||||
queryStrings.GetValue<string>("application")));
|
||||
|
||||
}
|
||||
|
||||
return nodes;
|
||||
|
||||
Reference in New Issue
Block a user