Skip to content

Commit

Permalink
Update router for template root
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jan 18, 2024
1 parent 28354ad commit 0bdacb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/edit-site/src/components/layout/router.js
Expand Up @@ -55,8 +55,12 @@ export default function useLayoutAreas() {
}

// Templates
if ( path === '/wp_template/all' ) {
const isListLayout = type === 'list';
if (
path === '/wp_template/all' ||
( path === '/wp_template' && window?.__experimentalAdminViews )
) {
const isListLayout =
isCustom !== 'true' && ( ! type || type === 'list' );
return {
areas: {
content: <PageTemplates />,
Expand Down

0 comments on commit 0bdacb3

Please sign in to comment.