feat(linkDirective): improve API for generating links