Network sign-in landing (Marty 2026-11-13, Android Chrome: signed in on LinkSpin via InstantAdPay but landed on the public home page, which always says Sign in): a hop with no page named lands on the member dashboard (LinkSpin /ads, InstantAdPay /my); LinkSpin's home page turns Sign in into 'Open my dashboard' for a signed-in visitor (home.js?v=20261113me). networksso.test + e2e ALL PASSED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 05:16:37 -06:00
parent 3c8fc1802d
commit 2c27dbc6e4
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -89,3 +89,14 @@
finally { $('verifyBtn').disabled = false; }
});
})();
// Signed in already (an email code here, or network sign-in from InstantAdPay): the header buttons open the dashboard instead of
// offering Sign in / Start free again (Marty 2026-11-13: arrived signed in from InstantAdPay and the home page still said Sign in)
(function () {
fetch('/api/me', { credentials: 'same-origin', cache: 'no-store' }).then(r => r.json()).then(me => {
if (!me || !me.signedIn) return;
const btns = document.querySelectorAll('header [data-join]');
if (btns.length) { btns[0].textContent = 'Open my dashboard'; btns[0].href = '/ads'; btns[0].removeAttribute('data-join'); btns[0].className = 'btn pri'; }
for (let i = 1; i < btns.length; i++) btns[i].hidden = true;
}).catch(() => {});
})();