Handle clicking on links.