Update: I think that the problem is in the plugin Sitepress or BuddyPress multilingual. I suppose that one of that plugin make a substring to extract language parameter form url. So in this case the es/ parameter with /send-invit”es/” generate a wrong rewriting of the URL.