Modify isRoute strategy