Instead of hacking back to $link, just provide it.