Added document link generation