diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index db721b012330f8..0518f5507d9841 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -281,9 +281,10 @@ function Layout( { initialPost } ) { switch ( actionId ) { case 'move-to-trash': { - const postType = items[ 0 ].type; document.location.href = addQueryArgs( 'edit.php', { - post_type: postType, + trashed: 1, + post_type: items[ 0 ].type, + ids: items[ 0 ].id, } ); } break;