From 5a2758d2f1246fa97d90cd90f8a3b2f8657c1558 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 15 Sep 2021 05:56:09 -0400 Subject: [PATCH] reorganize client-side fragment redirects --- static/js/redirect.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/static/js/redirect.js b/static/js/redirect.js index 1f706b71..2a28e951 100644 --- a/static/js/redirect.js +++ b/static/js/redirect.js @@ -11,20 +11,24 @@ const redirects = new Map([ ["/#copyright-and-licensing", "/faq#copyright-and-licensing"], ["/usage#default-connections", "/faq#default-connections"], - ["/releases#marlin-stable", "/faq#legacy-devices"], - ["/releases#sailfish-stable", "/faq#legacy-devices"], - ["/releases#marlin-beta", "/faq#legacy-devices"], - ["/releases#sailfish-beta", "/faq#legacy-devices"], - ["/releases#taimen-stable", "/faq#legacy-devices"], - ["/releases#walleye-stable", "/faq#legacy-devices"], - ["/releases#taimen-beta", "/faq#legacy-devices"], - ["/releases#walleye-beta", "/faq#legacy-devices"], ["/faq#dns", "/faq#custom-dns"], - ["/articles/grapheneos-servers#apps.grapheneos.org", "/articles/grapheneos-servers#releases.grapheneos.org"], - ["/articles/grapheneos-servers#time.grapheneos.org", "/articles/grapheneos-servers#grapheneos.network"], ["/install/cli#fastboot-as-non-root", "/install/cli#flashing-as-non-root"], ["/install/web#fastboot-as-non-root", "/install/web#flashing-as-non-root"], + // legacy devices + ["/releases#marlin-stable", "/faq#legacy-devices"], + ["/releases#marlin-beta", "/faq#legacy-devices"], + ["/releases#sailfish-stable", "/faq#legacy-devices"], + ["/releases#sailfish-beta", "/faq#legacy-devices"], + ["/releases#taimen-stable", "/faq#legacy-devices"], + ["/releases#taimen-beta", "/faq#legacy-devices"], + ["/releases#walleye-stable", "/faq#legacy-devices"], + ["/releases#walleye-beta", "/faq#legacy-devices"], + + // legacy servers + ["/articles/grapheneos-servers#apps.grapheneos.org", "/articles/grapheneos-servers#releases.grapheneos.org"], + ["/articles/grapheneos-servers#time.grapheneos.org", "/articles/grapheneos-servers#grapheneos.network"], + // preserve links to CLI install guide from when it was /install ["/install/#prerequisites", "/install/cli#prerequisites"], ["/install/#enabling-oem-unlocking", "/install/cli#enabling-oem-unlocking"],