code: public static boolean comparePaths(String path1, String path2) {
  
          return addLeadingAndTrailingSlash(path1).equals(addLeadingAndTrailingSlash(path2));
      }
docs: Compares two paths, ignoring leading and trailing slashes.<p>
  
  <b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>
  
  @param path1 the first path
  @param path2 the second path
  
  @return true if the paths are equal (ignoring leading and trailing slashes)