Changed the logic for detecting AspNet routes