diff --git a/packages/block-library/src/navigation-link/edit.js b/packages/block-library/src/navigation-link/edit.js index 85979df833df8..aa98feeace79d 100644 --- a/packages/block-library/src/navigation-link/edit.js +++ b/packages/block-library/src/navigation-link/edit.js @@ -176,7 +176,7 @@ function NavigationLinkEdit( { opensInNewTab: newOpensInNewTab, } = {} ) => setAttributes( { title: escape( newTitle ), - url: newURL, + url: encodeURI( newURL ), label: label || escape( newTitle ), opensInNewTab: newOpensInNewTab, } ) }