Fix tracking of metadata links

It uses the class on the definition to try and work out the position of
the link you have clicked. This class means it matches the footer
metadata so it can be correctly calculated.