File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > Redirecting...</ title >
6+ < script type ="text/javascript ">
7+ // Get the part of the URL after the domain
8+ var path = window . location . pathname ;
9+
10+ // Check if it matches the old API docs pattern:
11+ // /docs/api/[lang]/[...any...]/[...path...]/PageName.html
12+ // The ".*" part will greedily match any category path.
13+ var match = path . match ( / \/ d o c s \/ a p i \/ [ ^ \/ ] + \/ .* \/ ( [ ^ \. ] + ) \. h t m l / ) ;
14+
15+ if ( match && match [ 1 ] ) {
16+ // match[1] will be "AnimationMixer" or "ColorKeyframeTrack"
17+ var pageName = match [ 1 ] ;
18+
19+ // Construct the new URL and redirect.
20+ window . location . replace ( "https://threejs.org/docs/#" + pageName ) ;
21+ }
22+ </ script >
23+ </ head >
24+ < body >
25+ </ body >
26+ </ html >
You can’t perform that action at this time.
0 commit comments