Fixed URL recognizer to not endlessly loop anymore