Skip to content

Clicking "Save and Preview" when a preview is already open in a separate browser tab causes the preview to show the published version of the content item. #20981

@stephen-sherman

Description

@stephen-sherman

Which Umbraco version are you using?

16.3.4, 16.4.0, 17.0.0

Bug summary

Clicking "Save and Preview" when a preview is already open in a separate browser tab causes the preview to show the published version of the content item.

Reproduced in clean installations of Umbraco 16.4.0 and 17.0.0, and in two deployed instances of Umbraco 16.3.4.

Specifics

No response

Steps to reproduce

  • Create a content item from a document type with template and enter some content
  • Click Save and publish
  • Make a content change
  • Click Save and preview
    • A new browser tab opens. It shows the latest saved version of the content item, as expected
  • Without closing the preview tab, return to the content editing tab
  • Make a content change
  • Click Save and preview
    • The browser swaps to the previously opened preview tab. It shows the latest published version of the page

Expected result / actual result

Expected result

Preview mode should always show the most up to date version of the content item

Actual result

Preview mode can enter a state where it shows the last published version of the content item, even though a more recently saved version is available

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions