In a web application that makes use of AJAX calls, I need to submit a request but add a parameter to the end of the URL, for example:
Original URL:
This is a simple way to add a query parameter:
const query = new URLSearchParams(window.location.search); query.append("enabled", "true");
And that is it more here.
Please note the support specs.