flatten group urls