From 051b7495f0a7e4ae463e2c0c5a41d01a26357b7d Mon Sep 17 00:00:00 2001 From: Kai Hao Date: Sun, 18 Jun 2023 15:12:53 +0800 Subject: [PATCH] Fix clicking browser's back button in edit mode from the Library (#51566) --- packages/edit-site/src/components/page-library/grid-item.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/edit-site/src/components/page-library/grid-item.js b/packages/edit-site/src/components/page-library/grid-item.js index 7ab597ebcec8b..62f6d93efe7d1 100644 --- a/packages/edit-site/src/components/page-library/grid-item.js +++ b/packages/edit-site/src/components/page-library/grid-item.js @@ -66,7 +66,6 @@ const GridItem = ( { categoryId, composite, icon, item } ) => { const descriptionId = `edit-site-library__pattern-description-${ instanceId }`; const { onClick } = useLink( { - path: '/library', postType: item.type, postId: item.type === USER_PATTERNS ? item.id : item.name, categoryId,