diff --git a/packages/edit-site/src/components/site-hub/index.js b/packages/edit-site/src/components/site-hub/index.js index 3f34b8bd1cccb..9e57034bfe73a 100644 --- a/packages/edit-site/src/components/site-hub/index.js +++ b/packages/edit-site/src/components/site-hub/index.js @@ -121,17 +121,27 @@ export const SiteHubMobile = memo( const history = useHistory(); const { navigate } = useContext( SidebarNavigationContext ); - const { homeUrl, siteTitle } = useSelect( ( select ) => { - const { getEntityRecord } = select( coreStore ); - const _site = getEntityRecord( 'root', 'site' ); - return { - homeUrl: getEntityRecord( 'root', '__unstableBase' )?.home, - siteTitle: - ! _site?.title && !! _site?.url - ? filterURLForDisplay( _site?.url ) - : _site?.title, - }; - }, [] ); + const { dashboardLink, isBlockTheme, homeUrl, siteTitle } = useSelect( + ( select ) => { + const { getSettings } = unlock( select( editSiteStore ) ); + + const { getEntityRecord, getCurrentTheme } = + select( coreStore ); + const _site = getEntityRecord( 'root', 'site' ); + return { + dashboardLink: + getSettings().__experimentalDashboardLink || + 'index.php', + isBlockTheme: getCurrentTheme()?.is_block_theme, + homeUrl: getEntityRecord( 'root', '__unstableBase' )?.home, + siteTitle: + ! _site?.title && !! _site?.url + ? filterURLForDisplay( _site?.url ) + : _site?.title, + }; + }, + [] + ); const { open: openCommandCenter } = useDispatch( commandsStore ); return ( @@ -148,16 +158,23 @@ export const SiteHubMobile = memo(