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