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