added new condition to test for internal urls