fixed `link` method for use with relation plugin.