add doc url to invitation email
if doc doesn't exist, redirect to root_url