/src/main/java/org/htmlunit/util/UrlUtils.java
s.append( location_) ;
s.append ( '#' ) ;
if (query != null) { s.append('?'); s.append(query); } if (ref != null) { if (ref.isEmpty() || ref.charAt(0) != '#') { <extra_id_0> } s.append(ref); } return toUrlSafe(s.toString()); } public static String resolveUrl(final String baseUrl, final String relativeUrl) {