Simplify url extraction