code: public static String linkTagAction(String target, ServletRequest req, String baseUri, Locale locale) {
  
          return linkTagAction(target, req, baseUri, null, locale);
      }
docs: Returns a link to a file in the OpenCms VFS
  that has been adjusted according to the web application path and the
  OpenCms static export rules.<p>
  
  <p>If the <code>baseUri</code> parameter is provided, this will be treated as the source of the link,
  if this is <code>null</code> then the current OpenCms user context URI will be used as source.</p>
  
  <p>If the <code>locale</code> parameter is provided, the locale in the request context will be switched
  to the provided locale. This influences only the behavior of the
  {@link org.opencms.staticexport.CmsLocalePrefixLinkSubstitutionHandler}.</p>
  
  
  Relative links are converted to absolute links, using the current element URI as base.<p>
  
  @param target the link that should be calculated, can be relative or absolute
  @param req the current request
  @param baseUri the base URI for the link source
  @param locale the locale for which the link should be created (see {@link org.opencms.staticexport.CmsLocalePrefixLinkSubstitutionHandler}
  
  @return the target link adjusted according to the web application path and the OpenCms static export rules
  
  @see #linkTagAction(String, ServletRequest)
  
  @since 8.0.3