Updating links for document preview