diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/NavigationState.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/NavigationState.java index d2951d25cf..be97e9c895 100644 --- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/NavigationState.java +++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/NavigationState.java @@ -88,6 +88,10 @@ public String gotoFirst() { return gotoNode(tree.getTree().getNextNode()) + "?faces-redirect=true"; // the first after the root node } + public String rootUrl() { + return tree.getTree().getNextNode().toString(); + } + public String gotoPrevious() { if (currentNode == null) { return gotoFirst(); diff --git a/tobago-example/tobago-example-demo/src/main/webapp/menu.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/menu.xhtml index 08929f0fb5..4537ecd586 100644 --- a/tobago-example/tobago-example-demo/src/main/webapp/menu.xhtml +++ b/tobago-example/tobago-example-demo/src/main/webapp/menu.xhtml @@ -34,12 +34,12 @@ + link="https://tobago-demo.apache.org/"/> - +