Small update to URL parsing logic in init