Skip to content

Preview link broken until post is saved for the first time #2544

@hartsook

Description

@hartsook

Issue Overview

Gutenberg 0.9
Preview link at top of page does not work unless I update the page first. I get a new browser tab -
about:blank. 

Steps to Reproduce (for bugs)

  1. Create Gutenberg post
  2. add content
  3. publish post
  4. edit post in Gutenberg
  5. make change in post
  6. click Preview link at top of page
  7. Chrome opens a new tab with about:blank URL
  8. This occurs in both author and admin roles
  9. If I Update the post first, then the Preview link works.

Expected Behavior

If I make changes in a post I should be able to preview the post before Updating, especially if this is a Published post and not a Draft post.

Preview link should work like it does currently.

Current Behavior

Preview link at top of page does not work unless I update the page first. I get a new browser tab about:blank. 

Possible Solution

Related Issues and/or PRs

Todos

  • Tests
  • Documentation

Metadata

Metadata

Labels

Core REST API TaskTask for Core REST API efforts[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions