Skip to content

Commit

Permalink
Fix Navigation Link url escaping (#19679)
Browse files Browse the repository at this point in the history
* pass url through escape function

* replace escape with encodeURI
  • Loading branch information
Addison-Stavlo authored and noahtallen committed Jan 15, 2020
1 parent 17e5c2d commit ec6ea4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function NavigationLinkEdit( {
opensInNewTab: newOpensInNewTab,
} = {} ) => setAttributes( {
title: escape( newTitle ),
url: newURL,
url: encodeURI( newURL ),
label: label || escape( newTitle ),
opensInNewTab: newOpensInNewTab,
} ) }
Expand Down

0 comments on commit ec6ea4c

Please sign in to comment.