diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index 18b32d247..086ec89e9 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -285,7 +285,10 @@ function getHTMLFromAtext(pad, atext, authorColors) var url = urlData[1]; var urlLength = url.length; processNextChars(startIndex - idx); - assem.append(''); + // Using rel="noreferrer" stops leaking the URL/location of the exported HTML when clicking links in the document. + // Not all browsers understand this attribute, but it's part of the HTML5 standard. + // http://www.w3.org/TR/html5/links.html#link-type-noreferrer + assem.append(''); processNextChars(urlLength); assem.append(''); });