How can I add current URL to "Email on Form Submission?"

Hello.

I would recommend declaring your path variable ad assigning the latest URL to it the assigning it to the URL variable in the sendFormData function. See code below:

let path = wixLocation.onChange((location) => {
return location.path;
})

function sendFormData(){
.
.
.
\URL: path
.
.
}