I'm using ajax to get a file from the server.
$.ajax({
url : "Software/Desktop",
data : "Software/Desktop/info.json",
success: function (data) {
alert("Success");
}
})
.fail(alert("Not Success"));
Instead of looking in "Software/Desktop" it appears to be looking in "Software/Desktop?Software/Desktop" and then failing.
This is the console error message:
GET jquery.min.js:2 GET http://localhost:3000/Software/Desktop?Software/Desktop/info.json 404 (Not Found)
Why the duplication? And why the extra question mark?
CodePudding user response:
