Override links method instead of using all_links.