Fix #338 'document_link doesn't work'