Skip to content

Commit 2c71b21

Browse files
Remove dead partner_donation_id from donate hrefs
Every.org widget ignores this param (confirmed in their source). visitor_id is already carried inside partner_metadata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4156eda commit 2c71b21

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/layouts/Layout.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,10 @@ import { OpenPanelComponent } from '@openpanel/astro';
346346

347347
document.querySelectorAll('a[href*="every.org/osendowment"]').forEach((link) => {
348348
const href = link.getAttribute('href');
349-
if (href.includes('partner_donation_id')) return;
349+
if (href.includes('partner_metadata')) return;
350350
const [base, hash] = href.split('#');
351351
link.setAttribute('href',
352-
base + '&partner_donation_id=' + encodeURIComponent(window.__oseVisitorId)
353-
+ '&partner_metadata=' + encodeURIComponent(metadataB64)
352+
base + '&partner_metadata=' + encodeURIComponent(metadataB64)
354353
+ (hash ? '#' + hash : ''));
355354
});
356355

0 commit comments

Comments
 (0)