-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Override the backlink on the Live Preview #81387
Conversation
This PR modifies the release build for wpcom-block-editor To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-l4k-p2 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
We have to do it on Jetpack. See the site_editor_dashboard_link function and the |
@arthur791004 wp-calypso/apps/wpcom-block-editor/src/calypso/features/iframe-bridge-server.js Line 1027 in 288df6b
wp-calypso/apps/wpcom-block-editor/src/wpcom/features/site-editor-env-consistency.js Line 20 in 288df6b
Maybe we should move these into Jetpack? |
I guess we might not need this for the site editor since we have un-iframed the site editor. But maybe page/post editor still relies on it.
This one seems for dev/test env to keep the consistency of the origin. I think Jetpack doesn't know that so we might still need to override the Back URL on the Live Preview 🤔 But the goal of this is to replace the origin instead of the destination. |
Thanks for your explanation, @arthur791004 👍 Let's move this PR (and |
I've thought about this again, and I don't think the backlink for Live Preview should be changed in Jetpack (or in And I use I had thought about implementing it in Any thoughts, @arthur791004? |
7774042
to
7b36f44
Compare
I think the important part is
I think this is only for the consistency of the origin instead of the link. The better way might be to migrate them to We have to avoid adding more and more features to wpcom-block-editor or ETK plugin since we have the plan to migrate them to Jetpack. See p9oQ9f-Ht-p2 and p58i-dox-p2 |
Thanks for your comment again, @arthur791004, and that all makes sense to me.
|
Related to
#80595
WordPress/gutenberg#54174
Proposed Changes
Override the Back on the Live Preview with the
'core/edit-site'
store. This PR solves #80595 and works after WordPress/gutenberg#54174.Testing Instructions
Pre-merge Checklist