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