Only extract URL if needed.