only change page for anchor links. not span