Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: skip external link obfuscation
Marc Seitz518be356ecb6
diff --git a/components/view/viewer/notion-page.tsx b/components/view/viewer/notion-page.tsxindex 7a1ba4ed..6710266e 100644--- a/components/view/viewer/notion-page.tsx+++ b/components/view/viewer/notion-page.tsx@@ -105,8 +105,8 @@ const obfuscateNotionIds = (container: HTMLElement) => {uuidPattern.lastIndex = 0;});- // Obfuscate anchor href attributes that contain Notion IDs- const anchors = container.querySelectorAll("a[href]");+ // Obfuscate anchor href attributes that contain Notion IDs (skip external links with target)+ const anchors = container.querySelectorAll("a[href]:not([target])");anchors.forEach((anchor) => {const href = anchor.getAttribute("href");if (href && uuidPattern.test(href)) {