Use cache for link href in search tracking

The variable was being used already to generate the sublink string but
was never actually populated.