[API-458] allow grouping with arbitrary URL depth