Skip to content

Commit 1bce3ec

Browse files
author
Rick Butterfield
committed
Rename sustainabilityTree to sustainability
1 parent a4a6bb7 commit 1bce3ec

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Umbraco.Community.Sustainability/Trees/SustainabilityTreeController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Umbraco.Community.Sustainability.Trees
1111
{
12-
[Tree("sustainability", "sustainabilityTree", TreeTitle = "Sustainability", TreeGroup = "sustainabilityTreeGroup")]
12+
[Tree("sustainability", "sustainability", TreeTitle = "Sustainability", TreeGroup = "sustainabilityTreeGroup")]
1313
[PluginController("UmbracoCommunitySustainability")]
1414
public class SustainabilityTreeController : TreeController
1515
{
@@ -30,11 +30,11 @@ protected override ActionResult<TreeNodeCollection> GetTreeNodes(string id, Form
3030

3131
if (id == Cms.Core.Constants.System.RootString)
3232
{
33-
var overviewNode = CreateTreeNode("overview", Cms.Core.Constants.System.RootString, queryStrings, "Overview", "icon-eco", false, "sustainability/sustainabilityTree/overview");
33+
var overviewNode = CreateTreeNode("overview", Cms.Core.Constants.System.RootString, queryStrings, "Overview", "icon-eco", false, "sustainability/sustainability/overview");
3434
overviewNode.MenuUrl = null;
3535
collection.Add(overviewNode);
3636

37-
var statsNode = CreateTreeNode("stats", Cms.Core.Constants.System.RootString, queryStrings, "Stats", "icon-chart", false, "sustainability/sustainabilityTree/stats");
37+
var statsNode = CreateTreeNode("stats", Cms.Core.Constants.System.RootString, queryStrings, "Stats", "icon-chart", false, "sustainability/sustainability/stats");
3838
statsNode.MenuUrl = null;
3939
collection.Add(statsNode);
4040
}
@@ -59,7 +59,7 @@ protected override ActionResult<MenuItemCollection> GetMenuForNode(string id, Fo
5959

6060
if (root is not null)
6161
{
62-
root.RoutePath = "sustainability/sustainabilityTree/overview";
62+
root.RoutePath = "sustainability/sustainability/overview";
6363
root.Icon = "icon-eco";
6464
root.HasChildren = false;
6565
root.MenuUrl = null;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</uui-table-row>
4444
</uui-table>
4545

46-
<uui-button look="primary" href="/umbraco#sustainability/sustainabilityTree/stats">
46+
<uui-button look="primary" href="/umbraco#sustainability/sustainability/stats">
4747
See more data
4848
</uui-button>
4949
</uui-box>

0 commit comments

Comments
 (0)