Display folder content batching bug

Hi,

i notice a little strange behavior when using "Display -> All content " on a folder with exactly 21 entries. Plone 5.1.4 shows all pages of the folder in the left navigation menu, but only 20 entries in the content area.
The "Next" element below the content do not show a second page.

If i add the 22. element in the folder the "Next" navigation below the content shows a second page with 2 items :wink:

Can anybody confirm this behavior ?

Confirmed on plone-demo.info (Plone 5.1-latest)

Please file a bug report.

That bug sounds familiar... but couldn't find an existing issue. @tfili please go ahead and file in https://github.com/plone/Products.CMFPlone/issues

Ok,

issue is created :