/src/main/java/org/htmlunit/util/UrlUtils.java
url.location_ = spec.substring( locationStartIndex, locationEndIndex) ;url.path_ = spec.substring( startIndex, endIndex) ;
url.path_ = spec.substring ( startIndex, endIndex ) ;
endIndex = semicolonIndex; } if ((locationStartIndex >= 0) && (locationEndIndex < 0)) { locationEndIndex = endIndex; } else if (startIndex < endIndex) { <extra_id_0> } if ((locationStartIndex >= 0) && (locationEndIndex >= 0)) { url.location_ = spec.substring(locationStartIndex, locationEndIndex); } return url; }