Skip to content

Menu does not return preview content #69

@metaforx

Description

@metaforx

When querying a menu as an authenticated CMS user with the 'preview' flag enabled, only the currently public menu is returned, not the 'draft' state of the menu.

Reproduction

  1. Create a menu with all nodes published
  2. Change a menu title via settings in page tree (create a new draft)

Setup

  • djangocms-rest@latest (0.8.1)
  • djangcms 5.0.3

Result
JSON response from the API does not reflect changes.

Expected Result
JSON reflects changes. The title for the node has changed.

curl -X 'GET' \
  'http://localhost:8080/api/cms/de/menu/1/3/999/999/?preview=false' \ #?preview=true 
  -H 'accept: application/json'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions