/src/main/java/org/htmlunit/html/HtmlAnchor.java
url = UrlUtils.getUrlWithNewPath( url, rel) ;
url = UrlUtils.getUrlWithNewPath ( url, path ) ;
if (StringUtils.isEmpty(href)) { final boolean dropFilename = page.getWebClient().getBrowserVersion() .hasFeature(ANCHOR_EMPTY_HREF_NO_FILENAME); if (dropFilename) { String path = url.getPath(); path = path.substring(0, path.lastIndexOf('/') + 1); <extra_id_0> } url = UrlUtils.getUrlWithNewRef(url, null); } return url; } @Override