docs: private void openTargetPage(CmsSitemapTreeNodeData nodeData, boolean second) {
  
          CmsUUID id = nodeData.getClientEntry().getId();
          CmsUUID defaultFileId = nodeData.getClientEntry().getDefaultFileId();
          CmsUUID targetId = defaultFileId;
          if (targetId == null) {
              targetId = id;
          }
          try {
              CmsResource resource = A_CmsUI.getCmsObject().readResource(targetId, CmsResourceFilter.IGNORE_EXPIRATION);
              String link = OpenCms.getLinkManager().substituteLink(A_CmsUI.getCmsObject(), resource);
              if (second) {
                  resource = A_CmsUI.getCmsObject().readResource(
                      nodeData.getLinkedResource().getStructureId(),
                      CmsResourceFilter.IGNORE_EXPIRATION);
                  link = OpenCms.getLinkManager().substituteLink(A_CmsUI.getCmsObject(), resource);
              }
  
              String mySiteRoot = A_CmsUI.getCmsObject().getRequestContext().getSiteRoot();
              final boolean sameSite = mySiteRoot.equals(OpenCms.getSiteManager().getSiteRoot(resource.getRootPath()));
  
              if (sameSite) {
                  A_CmsUI.get().getPage().setLocation(link);
              } else {
                  String message = CmsVaadinUtils.getMessageText(
                      Messages.GUI_LOCALECOMPARE_SHOW_WRONGSITE_1,
                      resource.getRootPath());
  
                  Notification.show(message, Type.ERROR_MESSAGE);
              }
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
  
      }