I have inserted a delete link with CRED to delete/trash the current post in the loop. I have set the page to refresh after deletion. When I click this link, it shows a JS confirm dialog "Are you sure you want to delete this post?" After clicking OK, the page starts to refresh and then a second dialog pops up saying "Post deleted". After clicking OK for this one too, the page continues to refresh, and after it finishes refreshing it show a third dialog "Post delete failed"
I check in the backend and the post is actually in Trash, so why do I get this false error message in the JS dialog?