From 5a2758d2f1246fa97d90cd90f8a3b2f8657c1558 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 15 Sep 2021 05:56:09 -0400 Subject: reorganize client-side fragment redirects --- static/js/redirect.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'static/js') 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,19 +11,23 @@ const redirects = new Map([ ["/#copyright-and-licensing", "/faq#copyright-and-licensing"], ["/usage#default-connections", "/faq#default-connections"], + ["/faq#dns", "/faq#custom-dns"], + ["/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#sailfish-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#walleye-stable", "/faq#legacy-devices"], ["/releases#taimen-beta", "/faq#legacy-devices"], + ["/releases#walleye-stable", "/faq#legacy-devices"], ["/releases#walleye-beta", "/faq#legacy-devices"], - ["/faq#dns", "/faq#custom-dns"], + + // 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"], - ["/install/cli#fastboot-as-non-root", "/install/cli#flashing-as-non-root"], - ["/install/web#fastboot-as-non-root", "/install/web#flashing-as-non-root"], // preserve links to CLI install guide from when it was /install ["/install/#prerequisites", "/install/cli#prerequisites"], -- cgit v1.3.1