Fix url reference for attachments