Improved handling of links that should not be targeted.