Fix export of links to attachements (part 2)