Skip to content

Commit

Permalink
Account for front-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Oct 25, 2022
1 parent 31261ba commit c53f678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/edit-site/src/components/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export default function EditSiteApp( { reboot, homeTemplate } ) {
<Routes>
{ ( { params } ) => {
const isListPage = getIsListPage( params );

// The existence of `'front-page` supersedes very other settings.
const homeTemplateType =
params.postId?.includes( 'front-page' ) ||
params.postId === homeTemplate?.postId
? 'site-editor'
: undefined;
Expand Down

0 comments on commit c53f678

Please sign in to comment.