Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Block: Draft Page shows on front end as a broken link #29691

Closed
annezazu opened this issue Mar 9, 2021 · 0 comments · Fixed by #29692
Closed

Navigation Block: Draft Page shows on front end as a broken link #29691

annezazu opened this issue Mar 9, 2021 · 0 comments · Fixed by #29692
Assignees
Labels
[Block] Navigation Affects the Navigation Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

annezazu commented Mar 9, 2021

Description

When using the navigation block, if you create a draft page, the page then displays on the front end of the site even though it's still a draft and leads to a broken link. cc @gwwar

Step-by-step reproduction instructions

These are a bit rough, apologies. I'm finding this hard to explain but the video should help!

  1. Add a navigation block
  2. Add a Link Block > Start typing a title of a page that does not exist
  3. Create a draft of that page
  4. Select "Update Design" to save changes
  5. View the front end of your site and notice that the menu item with the page draft shows despite being a draft. If you click on it in an incognito window, you'll be taken to a 404 page.

Expected behaviour

I'd expect a draft of a page to not be shown as a broken menu item.

Actual behaviour

The draft is linked to causing a broken link. However, it's not obvious it's broken as when you are logged in as an admin the page is able to be viewed. If you check in an incognito window, you'll see it's broken.

Screenshots or screen recording (optional)

nav.block.bug.mov

WordPress information

  • WordPress version: 5.6.2
  • Gutenberg version: 10.1.1
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks
@annezazu annezazu added [Type] Bug An existing feature does not function as intended [Block] Navigation Affects the Navigation Block labels Mar 9, 2021
@gwwar gwwar self-assigned this Mar 9, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants