Skip to content

Commit

Permalink
Set entity when we have path=pages & postId
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Jan 23, 2024
1 parent 190e8e8 commit 10df45d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function useResolveEditedEntityAndContext( { path, postId, postType } ) {
}

// Some URLs in list views are different
if ( path === '/page' && postId ) {
if ( path === '/pages' && postId ) {
return resolveTemplateForPostTypeAndId( 'page', postId );
}

Expand Down Expand Up @@ -196,7 +196,7 @@ function useResolveEditedEntityAndContext( { path, postId, postType } ) {
}

// Some URLs in list views are different
if ( path === '/page' && postId ) {
if ( path === '/pages' && postId ) {
return { postType: 'page', postId };
}

Expand Down

0 comments on commit 10df45d

Please sign in to comment.