correc the condition which test url format