activateNodeWithRoute()

in helpers/navigation/nav_tree.js [38:48]


  activateNodeWithRoute(route = '') {
    if (!route) {
      return;
    }
    const fragments = route.replace(/^\//, '').split('/').reverse().filter(Boolean);
    const activeNode = this.getNodeWithPaths(fragments);
    if (!activeNode) {
      return;
    }
    activeNode.activate();
  }