/src/main/java/org/htmlunit/html/HtmlAnchor.java
if ( dropFilename ) { String path = url.getPath ( ) ; path = path.substring ( 0, path.lastIndexOf ( '/' ) + 1 ) ; url = UrlUtils.getUrlWithNewPath ( url, path ) ; }
} public static URL getTargetUrl(final String href, final HtmlPage page) throws MalformedURLException { URL url = page.getFullyQualifiedUrl(href); if (StringUtils.isEmpty(href)) { final boolean dropFilename = page.getWebClient().getBrowserVersion() .hasFeature(ANCHOR_EMPTY_HREF_NO_FILENAME); <extra_id_0> url = UrlUtils.getUrlWithNewRef(url, null); } return url; } @Override protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlKey) throws IOException {