Add some comments on the function 'getLinkTarget'