1 2document.addEventListener('DOMContentLoaded', function () { 3 var slug = location.pathname.replace(/^\/+|\/+$/g, ''); // "blueprint", "insurance", "" 4 if (!slug) return; // homepage â leave as-is 5 document.querySelectorAll('a[href*="movement.betterbrain.com"]').forEach(function (a) { 6 try { 7 var url = new URL(a.getAttribute('href'), location.origin); 8 url.searchParams.set('return', slug); // idempotent; keeps any UTMs 9 a.setAttribute('href', url.toString()); 10 } catch (e) {} 11 }); 12});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.