generated from nhcarrigan/template
fix: redirects
This commit is contained in:
parent
40c9d561cc
commit
a91a2cce5d
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user