code: function fromClosestContext() {
          var hasParentNavigationContext =
            currentContext.context.parentNavigationContexts.length > 0;
          if (hasParentNavigationContext) {
            options.fromContext = null;
            options.fromClosestContext = true;
          } else {
            console.error(
              'Navigation not possible, no parent navigationContext found.'
            );
          }
          return this;
        }
docs: Sets the current navigation context which is then used by the `navigate` function. This has to be a parent navigation context, it is not possible to use the child navigation contexts.
  @returns {linkManager} link manager instance
  @example
  LuigiClient.linkManager().fromClosestContext().navigate('/users/groups/stakeholders')