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