Skip to content

Site Editor/Navigation: Links to draft pages not showing up in site preview #29417

@alaczek

Description

@alaczek

When I add a page link to the navigation block and select the option to create a draft page, the new nav menu item shows up in the editor but is not visible in the preview. I think this might be related to #29395 and #29397.

Steps to reproduce:

  1. Open the site editor and start editing the site header.
  2. Add navigation block, and add a new link inside. (or add a new item to the existing navigation block).
  3. Start typing a page name and select the "Create draft page" option when it's offered.
  4. The new link will be added to the menu in the editor.
  5. Save and preview. The new link is not visible on the front end.

Expected behaviour

I expected the link to the draft page to show up in preview.

Screenshots or screen recording (optional)

nQPanjRcHw

WordPress information

  • WordPress version: 5.6.2
  • Gutenberg version: 10.0.2
  • Are all plugins except Gutenberg deactivated? YES
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: macOS 10.15.7
  • Browser: Chrome 88.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] NavigationAffects the Navigation Block[Block] Navigation LinkAffects the Navigation Link Block[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions