-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
'View post' links shown when post type is not publicly_queryable #8151
Comments
👋😊 hi @jchristopher! |
This was implemented for the preview button in #6232. We have to implement it for the other preview links in the editor as well. |
Just working through this, it seems if you can't preview then don't show the preview links. This would include showing 'no title' is live and 'view post'. Does that solve the issue? |
@karmatosed What should be shown instead? Can we get specific direction on how this should be implemented? |
Fixed in #12046 |
Describe the bug
When working with a post type that has
publicly_queryable
set tofalse
links are shown to view the post on the front end, which leads to a404
To Reproduce
Steps to reproduce the behavior:
'publicly_queryable' => false
Expected behavior
No 'view' links shown
Screenshots
Desktop (please complete the following information):
Additional context
Gutenberg version 3.3.0
The text was updated successfully, but these errors were encountered: