diff --git a/shared/editor/marks/Link.tsx b/shared/editor/marks/Link.tsx index 7c62bd00f..fc1971906 100644 --- a/shared/editor/marks/Link.tsx +++ b/shared/editor/marks/Link.tsx @@ -167,7 +167,10 @@ export default class Link extends Mark { if (this.options.onClickLink) { event.stopPropagation(); event.preventDefault(); - this.options.onClickLink(linkMark.attrs.href, event); + this.options.onClickLink( + sanitizeUrl(linkMark.attrs.href), + event + ); } } catch (err) { this.editor.props.onShowToast(