|
|
@@ -0,0 +1,26 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <title>Redirecting...</title>
|
|
|
+ <script type="text/javascript">
|
|
|
+ // Get the part of the URL after the domain
|
|
|
+ var path = window.location.pathname;
|
|
|
+
|
|
|
+ // Check if it matches the old API docs pattern:
|
|
|
+ // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
|
|
|
+ // The ".*" part will greedily match any category path.
|
|
|
+ var match = path.match(/\/docs\/api\/[^\/]+\/.*\/([^\.]+)\.html/);
|
|
|
+
|
|
|
+ if (match && match[1]) {
|
|
|
+ // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"
|
|
|
+ var pageName = match[1];
|
|
|
+
|
|
|
+ // Construct the new URL and redirect.
|
|
|
+ window.location.replace("https://threejs.org/docs/#" + pageName);
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+</body>
|
|
|
+</html>
|