Skip to content

Previewing blocks behaves inconsistently with Previewing pages #603

@peakpg

Description

@peakpg

Preview Blocks behaves slightly differently that previewing pages, which may be a problem.

  • Preview Pages opens (/pages/1/preview) and shows the latest draft as it would appear after it's published.
    *Preview blocks opens /products/slug-of-product and shows the latest published version of the page.

The main goal for 'Preview' was to link to the correct path for the block.

Considerations: Having /cms/product/1 redirect to the path of the page (/products/slug-of-product) means adding more complicated logic for /products/:slug to determine whether users see the draft or
This would allow us to use /products/1/preview to show the latest draft in a new window (making it consistent with pages)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions