3.0 pagination union

Fixes #5107