fix: redirects

This commit is contained in:
Naomi Carrigan 2024-08-24 10:16:15 -07:00
parent 40c9d561cc
commit a91a2cce5d
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8

View File

@ -17,23 +17,24 @@ to make our things work.
window.location.replace('/community/coc'); window.location.replace('/community/coc');
return; return;
} }
if (hash === "#/coc") { if (hash === "#/contributing") {
window.location.replace('/community/coc'); window.location.replace('/dev/contributing');
return; return;
} }
if (hash === "#/coc") { if (hash === "#/privacy") {
window.location.replace('/community/coc'); window.location.replace('/legal/privacy');
return; return;
} }
if (hash === "#/coc") { if (hash === "#/terms") {
window.location.replace('/community/coc'); window.location.replace('/legal/terms');
return; return;
} }
if (hash.startsWith('#/')) { if (hash === "#/security") {
const [newPath, newHash] = hash.slice(2).split('?id='); window.location.replace('/legal/security');
window.location.replace( return;
newHash ? `/${newPath}/#${newHash}` : `/${newPath}` }
); if (hash === "#/contact") {
window.location.replace('/about/contact');
return; return;
} }
window.location.replace('/intro'); window.location.replace('/intro');