summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-03-06 22:38:39 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-03-06 22:38:39 -0500
commitaae0ac8edf404d47c664506e26f8a23e8a36f01d (patch)
tree68445f3a559fc46171dabb06ff2329af94d1e437 /static
parent5450f94be18c8e7d135a97f1fb171bd758a3dca6 (diff)
replace legacy /install redirect
Diffstat (limited to 'static')
-rw-r--r--static/build.html2
-rw-r--r--static/faq.html2
-rw-r--r--static/index.html2
-rw-r--r--static/install/cli.html2
-rw-r--r--static/install/index.html1
-rw-r--r--static/install/web.html2
-rw-r--r--static/js/redirect.js21
-rw-r--r--static/releases.html2
-rw-r--r--static/usage.html2
9 files changed, 29 insertions, 7 deletions
diff --git a/static/build.html b/static/build.html
index 4ff43158..19ea053d 100644
--- a/static/build.html
+++ b/static/build.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/faq.html b/static/faq.html
index 4b0fcaa6..3290fdda 100644
--- a/static/faq.html
+++ b/static/faq.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/index.html b/static/index.html
index 859756ba..4a5e1d7f 100644
--- a/static/index.html
+++ b/static/index.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/install/cli.html b/static/install/cli.html
index b5a7b5eb..91e083bd 100644
--- a/static/install/cli.html
+++ b/static/install/cli.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/install/index.html b/static/install/index.html
index b2e1cd4b..cbf5b024 100644
--- a/static/install/index.html
+++ b/static/install/index.html
@@ -26,6 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/install/web.html b/static/install/web.html
index c36ecdc3..72a5b239 100644
--- a/static/install/web.html
+++ b/static/install/web.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
<script type="module" src="/js/fastboot/dist/fastboot.min.mjs?1.0.7"></script>
<script type="module" src="/js/web-install.js?13"></script>
</head>
diff --git a/static/js/redirect.js b/static/js/redirect.js
index e820b662..31369991 100644
--- a/static/js/redirect.js
+++ b/static/js/redirect.js
@@ -22,6 +22,27 @@ const redirects = new Map([
["/build#upgrading-to-android-10", "/build#generating-release-signing-keys"],
["/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"],
+ ["/install/#enabling-oem-unlocking", "/install/cli#enabling-oem-unlocking"],
+ ["/install/#opening-terminal", "/install/cli#opening-terminal"],
+ ["/install/#obtaining-fastboot", "/install/cli#obtaining-fastboot"],
+ ["/install/#standalone-platform-tools", "/install/cli#standalone-platform-tools"],
+ ["/install/#checking-fastboot-version", "/install/cli#checking-fastboot-version"],
+ ["/install/#fastboot-as-non-root", "/install/cli#fastboot-as-non-root"],
+ ["/install/#connecting-phone", "/install/cli#connecting-phone"],
+ ["/install/#unlocking-the-bootloader", "/install/cli#unlocking-the-bootloader"],
+ ["/install/#obtaining-signify", "/install/cli#obtaining-signify"],
+ ["/install/#obtaining-factory-images", "/install/cli#obtaining-factory-images"],
+ ["/install/#flashing-factory-images", "/install/cli#flashing-as-non-root"],
+ ["/install/#troubleshooting", "/install/cli#troubleshooting"],
+ ["/install/#locking-the-bootloader", "/install/cli#locking-the-bootloader"],
+ ["/install/#post-installation", "/install/cli#post-installation"],
+ ["/install/#booting", "/install/cli#booting"],
+ ["/install/#disabling-oem-unlocking", "/install/cli#disabling-oem-unlocking"],
+ ["/install/#replacing-grapheneos-with-the-stock-os", "/install/cli#replacing-grapheneos-with-the-stock-os"],
+ ["/install/#further-information", "/install/cli#further-information"],
]);
function handle_hash() {
diff --git a/static/releases.html b/static/releases.html
index a2440d9d..698e5bf5 100644
--- a/static/releases.html
+++ b/static/releases.html
@@ -28,7 +28,7 @@
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
<script type="module" src="/js/releases.js?14"></script>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>
diff --git a/static/usage.html b/static/usage.html
index 1f20b55e..fcd8e314 100644
--- a/static/usage.html
+++ b/static/usage.html
@@ -26,7 +26,7 @@
<link rel="stylesheet" href="/grapheneos.css?29"/>
<link rel="manifest" href="/manifest.webmanifest"/>
<link rel="license" href="/LICENSE.txt"/>
- <script type="module" src="/js/redirect.js?10"></script>
+ <script type="module" src="/js/redirect.js?11"></script>
</head>
<body>
<header>