check links against routes