Files
linkspin/public/assets/my-redirect.js
T
2026-10-08 15:40:10 -05:00

10 lines
656 B
JavaScript

// The classic /my dashboard is retired (2026-10-08). Old links, emails and bookmarks carry a #pane; send each to the
// control-room screen that replaced it. External file on purpose: the site's CSP allows no inline scripts.
(function () {
var M = { '': '/links', overview: '/tools', line: '/team', pipeline: '/tools#pipeline', buy: '/credits', rotator: '/links',
campaigns: '/ads', earn: '/ads', earnings: '/credits', promo: '/tools#promo', training: '/tools#training',
wallet: '/wallet', profile: '/tools#profile' };
var h = (location.hash || '').slice(1).toLowerCase();
location.replace(M.hasOwnProperty(h) ? M[h] : '/tools#' + h);
})();