Skip to content

Commit

Permalink
navigation-link: set page id in the attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Jan 16, 2020
1 parent 2057349 commit a5cf173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,13 @@ function NavigationLinkEdit( {
title: newTitle = '',
url: newURL = '',
opensInNewTab: newOpensInNewTab,
id,
} = {} ) => setAttributes( {
title: escape( newTitle ),
url: encodeURI( newURL ),
label: label || escape( newTitle ),
opensInNewTab: newOpensInNewTab,
id,
} ) }
onClose={ () => setIsLinkOpen( false ) }
/>
Expand Down

0 comments on commit a5cf173

Please sign in to comment.