/src/main/java/org/htmlunit/util/UrlUtils.java
if ( url.scheme_ != null ) { return url; }
if (baseUrl == null) { return url; } if (relativeUrl.isEmpty()) { return new Url(baseUrl); } <extra_id_0> url.scheme_ = baseUrl.scheme_; if (url.location_ != null) { return url; } url.location_ = baseUrl.location_; if (url.path_ != null && !url.path_.isEmpty() && url.path_.charAt(0) == '/') {