process weird links with only attachments in the URL