update the link to each post