/src/main/java/org/htmlunit/html/HtmlForm.java
if ( HttpMethod.GET == method && browser.hasFeature ( FORM_SUBMISSION_URL_WITHOUT_HASH ) && UrlUtils.URL_ABOUT_BLANK != url ) { url = UrlUtils.getUrlWithNewRef ( url, null ) ; }
else { url = htmlPage.getFullyQualifiedUrl(actionUrl); } if (!queryFormFields.isEmpty()) { url = UrlUtils.getUrlWithNewQuery(url, queryFormFields); } <extra_id_0> else if (HttpMethod.POST == method && browser.hasFeature(FORM_SUBMISSION_URL_WITHOUT_HASH) && UrlUtils.URL_ABOUT_BLANK != url && StringUtils.isEmpty(actionUrl)) { url = UrlUtils.getUrlWithNewRef(url, null); }