diff --git a/src/resources-packaged/ops/javascript/orbeon/xforms/server/AjaxServer.js b/src/resources-packaged/ops/javascript/orbeon/xforms/server/AjaxServer.js index f7d25c2..44965f7 100644 --- a/src/resources-packaged/ops/javascript/orbeon/xforms/server/AjaxServer.js +++ b/src/resources-packaged/ops/javascript/orbeon/xforms/server/AjaxServer.js @@ -1784,8 +1784,15 @@ } // Set the action to the URL of the current page, so the URL seen by the client is always the URL // of a page to which we didn't do a submission replace="all" - if (requestForm.action.indexOf("xforms-server-submit") == -1) + if (requestForm.action.indexOf("xforms-server-submit") == -1) { requestForm.action = window.location.href; + // add an extra request parameter to work around a bug in Chrome + if (requestForm.action.indexOf('?') != -1) { + requestForm.action = requestForm.action + '&t=1'; + } else { + requestForm.action = requestForm.action + '?t=1'; + } + } if (target == null) { // Reset as this may have been changed before by asyncAjaxRequest requestForm.removeAttribute("target");