Skip to content

Commit

Permalink
Don't adjust the url if moving to focused mode of entity from post
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz authored and talldan committed Jan 3, 2024
1 parent f0c08de commit 9465f9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function Layout() {
showBlockBreadcrumbs,
showMetaBoxes,
documentLabel,
hasHistory,
} = useSelect( ( select ) => {
const { getEditorSettings, getPostTypeLabel } = select( editorStore );
const editorSettings = getEditorSettings();
Expand Down Expand Up @@ -199,6 +200,7 @@ function Layout() {
documentLabel: postTypeLabel || _x( 'Document', 'noun' ),
hasBlockSelected:
!! select( blockEditorStore ).getBlockSelectionStart(),
hasHistory: !! getEditorSettings().goBack,
};
}, [] );

Expand Down Expand Up @@ -286,7 +288,7 @@ function Layout() {
return (
<>
<FullscreenMode isActive={ isFullscreenActive } />
<BrowserURL />
{ ! hasHistory && <BrowserURL /> }
<UnsavedChangesWarning />
<AutosaveMonitor />
<LocalAutosaveMonitor />
Expand Down

0 comments on commit 9465f9f

Please sign in to comment.