Update Link.php

Better implementation. Do exactly what we want, not what is supposed to give the same result