about summary refs log tree commit diff
path: root/src/components/Link.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-22 23:28:45 +0000
committerGitHub <noreply@github.com>2024-11-22 23:28:45 +0000
commitac5b2cf31f2bb45f1bf8a180705249d3cce8017d (patch)
tree83af7c9781cdac5f561312fd1fe1d4048aad4342 /src/components/Link.tsx
parentfee2f5daa24da55f178af355623057c11b3e387b (diff)
downloadvoidsky-ac5b2cf31f2bb45f1bf8a180705249d3cce8017d.tar.zst
Pass referrer on native (with an opt out) (#6648)
* Pass referer on native

* Add ChainLink3

* Add an opt out for sending utm

* Remove noreferrer on links

We do have <meta name="referrer" content="origin-when-cross-origin"> in HTML, should be sufficient.

* Narrow down the condition slightly

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/components/Link.tsx')
-rw-r--r--src/components/Link.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Link.tsx b/src/components/Link.tsx
index a5203b252..ef31ea0c5 100644
--- a/src/components/Link.tsx
+++ b/src/components/Link.tsx
@@ -223,7 +223,7 @@ export function Link({
       {...web({
         hrefAttrs: {
           target: download ? undefined : isExternal ? 'blank' : undefined,
-          rel: isExternal ? 'noopener noreferrer' : undefined,
+          rel: isExternal ? 'noopener' : undefined,
           download,
         },
         dataSet: {
@@ -307,7 +307,7 @@ export function InlineLinkText({
       {...web({
         hrefAttrs: {
           target: download ? undefined : isExternal ? 'blank' : undefined,
-          rel: isExternal ? 'noopener noreferrer' : undefined,
+          rel: isExternal ? 'noopener' : undefined,
           download,
         },
         dataSet: {