Bridge pages: inside the ad viewer the button opens a new tab, so an offer that refuses framing no longer shows 'refused to connect' (reported for prenet.world, 2026-11-23); pt.js?v=3

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-23 08:03:12 -06:00
parent 35aa2f6514
commit 0785d4b41a
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1660,7 +1660,7 @@ const server = http.createServer(async (req, res) => {
// the visitor's click id goes into the built-in form at render (2026-10-22): from ?lsid, else the ls.click cookie a
// spin-link visit left earlier, so a lead counts as the rotator's 'lead' conversion even when the script never runs
const formLsid = /^[a-z0-9]{6,20}$/i.test(lsid) ? lsid : (/^[a-z0-9]{6,20}$/i.test(String(parseCookies(req)['ls.click'] || '')) ? parseCookies(req)['ls.click'] : '');
res.writeHead(200, hdr); return res.end(pages.html(pg, { leadUrl: '/p/' + pg.slug + '/lead', lsid: formLsid, trackSrc: '/assets/pt.js?v=2', footerLink: 'https://' + SITE_HOST + '/', footerText: 'Made with LinkSpin', pixel: 'https://' + SITE_HOST + '/p.gif?a=' + audiences.defaultFor(pg.owner) + '&e=page' }));
res.writeHead(200, hdr); return res.end(pages.html(pg, { leadUrl: '/p/' + pg.slug + '/lead', lsid: formLsid, trackSrc: '/assets/pt.js?v=3', footerLink: 'https://' + SITE_HOST + '/', footerText: 'Made with LinkSpin', pixel: 'https://' + SITE_HOST + '/p.gif?a=' + audiences.defaultFor(pg.owner) + '&e=page' }));
}
pm = /^\/p\/([a-z0-9-]{3,60})\/lead$/i.exec(p);
if (pm && req.method === 'POST') {