diff --git a/core/src/main/resources/jenkins/diagnostics/URICheckEncodingMonitor/adjunct.js b/core/src/main/resources/jenkins/diagnostics/URICheckEncodingMonitor/adjunct.js index 6066d3a13cc6..05ff9efc19fa 100644 --- a/core/src/main/resources/jenkins/diagnostics/URICheckEncodingMonitor/adjunct.js +++ b/core/src/main/resources/jenkins/diagnostics/URICheckEncodingMonitor/adjunct.js @@ -4,10 +4,14 @@ Behaviour.specify( 0, function (element) { var url = element.getAttribute("data-url"); - var params = { value: "\u57f7\u4e8b" }; - new Ajax.Updater("URICheckEncodingMonitor-message", url, { - method: "get", - parameters: params, + var params = new URLSearchParams({ value: "\u57f7\u4e8b" }); + fetch(url + "?" + params).then((rsp) => { + rsp.text().then((responseText) => { + var message = document.getElementById( + "URICheckEncodingMonitor-message" + ); + message.innerHTML = responseText; + }); }); } );