get the right direction for the link resource