diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js index 6f50136611..8d294126bf 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/tree.service.js @@ -154,7 +154,7 @@ function treeService($q, treeResource, iconHelper, notificationsService, $rootSc }, function(reason) { //in case of error, emit event - $rootScope.$broadcast("treeNodeLoadError", { element: arrow, node: node, error: reason }); + $rootScope.$broadcast("treeNodeLoadError", {error: reason }); //stop show the loading indicator node.loading = false; diff --git a/src/Umbraco.Web/HttpUrlHelperExtensions.cs b/src/Umbraco.Web/HttpUrlHelperExtensions.cs index a8988ac264..61d7f3dd7c 100644 --- a/src/Umbraco.Web/HttpUrlHelperExtensions.cs +++ b/src/Umbraco.Web/HttpUrlHelperExtensions.cs @@ -84,11 +84,11 @@ namespace Umbraco.Web routeName = string.Format("umbraco-{0}-{1}", "api", controllerName); if (id == null) { - return url.Link(routeName, new {controller = controllerName, action = actionName}); + return url.Route(routeName, new { controller = controllerName, action = actionName, httproute = "" }); } else { - return url.Link(routeName, new {controller = controllerName, action = actionName, id = id}); + return url.Route(routeName, new { controller = controllerName, action = actionName, id = id, httproute = "" }); } } else @@ -96,11 +96,11 @@ namespace Umbraco.Web routeName = string.Format("umbraco-{0}-{1}-{2}", "api", area, controllerName); if (id == null) { - return url.Link(routeName, new {controller = controllerName, action = actionName}); + return url.Route(routeName, new { controller = controllerName, action = actionName, httproute = "" }); } else { - return url.Link(routeName, new { controller = controllerName, action = actionName, id = id }); + return url.Route(routeName, new { controller = controllerName, action = actionName, id = id, httproute = "" }); } } }