wordpress admin ajax trash_comment

The way you’re adding parameters to the url isn’t working. The ajax request is designed to prevent parameter insertion like this.

I recommend you kick off another ajax request to handle this process rather than trying to hook into the existing process in this way.

For example, you can kick off your modal window after a comment is trashed and control the submission and logging process separately.