docs: public static String linkTagAction(
          String target,
          ServletRequest req,
          String baseUri,
          String detailPage,
          Locale locale) {
  
          CmsFlexController controller = CmsFlexController.getController(req);
          // be sure the link is absolute
          String uri = CmsLinkManager.getAbsoluteUri(target, controller.getCurrentRequest().getElementUri());
          CmsObject cms = controller.getCmsObject();
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(baseUri) || (null != locale)) {
              try {
                  cms = OpenCms.initCmsObject(cms);
                  if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(baseUri)) {
                      cms.getRequestContext().setUri(baseUri);
                  }
                  if (null != locale) {
                      cms.getRequestContext().setLocale(locale);
                  }
              } catch (CmsException e) {
                  // should not happen, if it does we can't do anything useful and will just keep the original object
                  LOG.debug(e.getLocalizedMessage(), e);
              }
          }
          // generate the link
          return OpenCms.getLinkManager().substituteLinkForUnknownTarget(cms, uri, detailPage, false);
      }