3👍
✅
You need to put place a /
at the start of the path to make it relative to the domain root instead of the current directory:
$.ajax({
method: "GET",
url: "/myportfolio/add_transaction",
data: $formData,
});
Source:stackexchange.com