diff --git a/packages/edit-site/src/components/sidebar-dataviews/dataview-item.js b/packages/edit-site/src/components/sidebar-dataviews/dataview-item.js index 0b5f93546875e5..61779a5c459a10 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/dataview-item.js +++ b/packages/edit-site/src/components/sidebar-dataviews/dataview-item.js @@ -29,7 +29,7 @@ export default function DataViewItem( { suffix, } ) { const { - params: { postType, layout }, + params: { postType, layout, activeView: previousView }, } = useLocation(); const iconToUse = @@ -41,7 +41,7 @@ export default function DataViewItem( { } const linkInfo = useLink( { postType, - layout, + layout: type !== 'list' || previousView === 'trash' ? type : layout, activeView, isCustom: isCustom ? 'true' : undefined, } ); diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 6c98ec7346488a..3803988cdf8c4f 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -156,6 +156,7 @@ export function useDefaultViews( { postType } ) { icon: trash, view: { ...DEFAULT_POST_BASE, + type: LAYOUT_TABLE, filters: [ { field: 'status',