fix URL resolution for admin-ajax.php when using the visual editor