diff --git a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js index 46079cbce8efd5..7b1321fdf4b8ac 100644 --- a/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +++ b/packages/edit-site/src/components/sync-state-with-url/use-init-edited-entity-from-url.js @@ -54,7 +54,10 @@ function useResolveEditedEntityAndContext( { postId, postType } ) { return { hasLoadedAllDependencies: !! base && !! siteData, homepageId: - siteData?.show_on_front === 'page' + siteData?.show_on_front === 'page' && + [ 'number', 'string' ].includes( + typeof siteData.page_on_front + ) ? siteData.page_on_front.toString() : null, url: base?.home,