fixed Attachment Handler for external links