From 9465f9f341c1ace69c48986d2b3abd8f8eadc3ac Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Fri, 22 Dec 2023 11:45:48 +1300 Subject: [PATCH] Don't adjust the url if moving to focused mode of entity from post --- packages/edit-post/src/components/layout/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 70d5554064edf6..72b843f06e7433 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -162,6 +162,7 @@ function Layout() { showBlockBreadcrumbs, showMetaBoxes, documentLabel, + hasHistory, } = useSelect( ( select ) => { const { getEditorSettings, getPostTypeLabel } = select( editorStore ); const editorSettings = getEditorSettings(); @@ -199,6 +200,7 @@ function Layout() { documentLabel: postTypeLabel || _x( 'Document', 'noun' ), hasBlockSelected: !! select( blockEditorStore ).getBlockSelectionStart(), + hasHistory: !! getEditorSettings().goBack, }; }, [] ); @@ -286,7 +288,7 @@ function Layout() { return ( <> - + { ! hasHistory && }