We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245e619 commit f4856d8Copy full SHA for f4856d8
api/docs/dist/index.html
@@ -10,7 +10,17 @@
10
11
<script type="text/javascript">
12
window.onload = (event) => {
13
- window.location.replace("https://docs.opentrons.com/v2/")}
+ const path = window.location.pathname;
14
+
15
+ // Handle specific redirects
16
+ if (path.startsWith('/v2')) {
17
+ window.location.replace("api/v2/");
18
+ } else if (path.startsWith('/v1')) {
19
+ window.location.replace("api/v1/");
20
+ } else if (path.startsWith('/ot1')) {
21
+ window.location.replace("api/ot1/");
22
23
+ }
24
</script>
25
26
</head>
0 commit comments