fix URL detector for relative URL