Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Preview shows a 404 error on unsaved posts for Simple sites #80788

Closed Greatdane closed 1 month ago

Greatdane commented 1 year ago

Quick summary

Unsaved pages on simple sites get a 404 error when previewing on a new page.

I assume its because a permalink has not been assigned yet.

This looks like a new development, as you always used to be able to preview regardless.

Only seems to affect Simple sites.

Video;

https://github.com/Automattic/wp-calypso/assets/5075840/be09e6ea-b04e-4776-8a19-43e79fd79a08

Steps to reproduce

  1. Open a simple site and create a new post
  2. Don't save it as a draft or publish
  3. Type a few words and click the 'preview in new tab' button
  4. The preview will show as 404

What you expected to happen

The preview should show

What actually happened

404 error

Impact

All

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple

Logs or notes

Workaround is to save as a draft.

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Simple Site - Replicated

https://github.com/Automattic/wp-calypso/assets/27249804/732a346d-9d6f-4b62-b08d-fb6c633ec012

Atomic Site - Issue does not occur

https://github.com/Automattic/wp-calypso/assets/27249804/39a83992-35a8-421c-a293-cc9e458812dc

📌 ACTIONS

cuemarie commented 1 year ago

9 Interactions noted on the closed #68071 spanning from October 2022 to end of July 2023

villanovachile commented 1 year ago

Another report: 6806737-zen Browser: Safari OS: macOS Ventura

Provided workaround to preview from the Pages/Post list

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.