diff --git a/packages/edit-site/src/components/global-styles/ui.js b/packages/edit-site/src/components/global-styles/ui.js index 60d7e314d7776a..0a82eec789c93c 100644 --- a/packages/edit-site/src/components/global-styles/ui.js +++ b/packages/edit-site/src/components/global-styles/ui.js @@ -280,10 +280,9 @@ function GlobalStylesEditorCanvasContainerLink() { * Exclude revisions panel from this behavior, * as it should close when the editorCanvasContainerView doesn't correspond. */ - if ( path !== '/' && ! isRevisionsOpen ) { - return; + if ( path !== '/' && isRevisionsOpen ) { + goTo( '/' ); } - goTo( '/' ); break; } }, [ editorCanvasContainerView, isRevisionsOpen, goTo ] );