code: public static boolean isPrefixPath(String firstPath, String secondPath) {
  
          firstPath = CmsStringUtil.joinPaths(firstPath, "/");
          secondPath = CmsStringUtil.joinPaths(secondPath, "/");
          return secondPath.startsWith(firstPath);
      }
docs: Checks if the first path is a prefix of the second path.<p>
  
  This method is different compared to {@link String#startsWith},
  because it considers <code>/foo/bar</code> to
  be a prefix path of <code>/foo/bar/baz</code>,
  but not of <code>/foo/bar42</code>.
  
  <b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>
  
  @param firstPath the first path
  @param secondPath the second path
  
  @return true if the first path is a prefix path of the second path