<script> (function () { // WHERE THE APP LIVES. Not this page - see the table above. var PORTAL = 'https://shop-pc.tailxxxx.ts.net'; // Refuse to forward to ourselves. Without this, mistyping PORTAL as // the Squarespace address is an infinite reload rather than an error. if (PORTAL.indexOf(window.location.hostname) !== -1) { console.error('PORTAL points at this page. Set it to the app address.'); return; } var pr = new URLSearchParams(window.location.search).get('pr'); var to = PORTAL + '/?supplier=1' + (pr ? '&pr=' + encodeURIComponent(pr) : ''); var a = document.getElementById('lx-supplier-cta'); if (a) a.href = to; // Straight through when the link named a request; otherwise let him // read the page and press the button himself. if (pr) window.location.replace(to); })(); </script>
0