FIX: click tracking on attachments wasn't working

This fixes click tracking on attachments.

**Note:** attachments hosted locally will be considered as *internal* links, whereas the ones hosted on S3 will not.