diff --git a/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java b/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java index 1618bb5..6a10fc9 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java +++ b/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java @@ -44,7 +44,9 @@ public class EnhancedRouteTabs extends Composite implements Before private final Map routerLinkTabMap = new LinkedHashMap<>(); public void add(String text, Class target) { - text = text.replaceFirst("\\s++[Dd]emo$", ""); + if (!text.equals("Basic Demo")) { + text = text.replaceFirst("\\s++[Dd]emo$", ""); + } RouterLink routerLink = getContent().addRouterLink(text, target); routerLink.setHighlightCondition(HighlightConditions.sameLocation()); routerLink.setHighlightAction(