Can only view drafts if there is a published revision

Created on 15 February 2025, about 2 months ago

Problem/Motivation

When creating a new piece of content set to draft the content will also set as unpublished and the authlink gives access denied. However if it's an existing piece of content and I create a new revision in draft the auth link allows me to view the content.

Is there something I'm missing to be able to view unpublished drafts?

🐛 Bug report
Status

Active

Version

2.1

Component

User interface

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @marcus.williams
  • 🇪🇸Spain tunic Madrid

    I'm assuming you are using Content Moderation and the default "Editorial" workflow. In that case, it should work. Just as reference, this is the test I've done in my local:

    • Enable Content Moderation module
    • Apply "Editorial" workflow to "Basic Page" content type (/admin/config/workflow/workflows/manage/editorial)
    • Create a new Basic Page and save it as draft
    • Create and authlink for that content

    The generated authlink works and the unpublished draft is visible.

    If this is not the case for you recheck the workflow configuration, or detail your conf so we can reproduce your problem.

Production build 0.71.5 2024