Skip to content

Don't return the items of the navroot in @navroot. - #102

Merged
robgietema merged 1 commit into
mainfrom
navroot-no-items
Nov 18, 2026
Merged

robgietema merged 1 commit into
mainfrom
navroot-no-items

Conversation

@robgietema

@robgietema robgietema commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

plone.restapi no longer returns the subitems in the @navroot endpoint (and ?expand=navroot), see plone/plone.restapi#1926. Match that: the handler no longer fetches the children, so navroot.items is gone. This also means private top-level items can't leak, so it replaces the restriction added in #61.

  • Test asserts items is absent for anonymous and admin.
  • Removed items from the docs example response.
  • Full test suite passes locally (88 files); prettier and eslint clean on the changed files.

plone.restapi no longer returns the subitems in the @navroot endpoint (plone/plone.restapi#1926). This also stops the titles of private top-level items leaking; replaces the restriction of #61.
@robgietema
robgietema merged commit 8a563e5 into main Nov 18, 2026
10 checks passed
@robgietema
robgietema deleted the navroot-no-items branch November 18, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant