Skip to content

Unpublishing a version keeps the current version published #10838

@christophemenager

Description

@christophemenager

Documentation Issue

I read this section of the doc about drafts but I am still missing a piece of the puzzle: what's the point of unpublishing a content?

Additional Details

  1. My mobile app is fetching only published content (draft: false)
  2. I accidentally publish a content in payloadcms (which could now be fetched by my mobile app)
  3. I click on "Unpublish" to revert my content to draft state
  4. This action simply duplicate the content in a new version with draft status, but the version I accidentally published is still being fetched by the mobile app.

I was expecting this button to revert the status of the current version back to draft instead of keeping the published version in the history.

  • Am l missing something?
  • How can I unpublish a content if I published it by mistake (so no client can fetch this content)?

Image

Metadata

Metadata

Assignees

Labels

area: coreCore Payload functionality

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions