Behavior about sending ajax request is now dependable on valid route shown.