get the permalink to the attachment