Skip to content

Commit 49f25c6

Browse files
committed
Docs: Redirect manual links.
1 parent 534c308 commit 49f25c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ <h1><a href="https://threejs.org">three.js</a></h1>
9393

9494
const hashLanguage = /^(api|manual|examples)\/(en|ar|ko|zh|it|pt-br|fr)\//.exec( hash );
9595

96+
if ( hashLanguage[ 1 ] === 'manual' ) {
97+
98+
// Redirect to the manual
99+
100+
window.location.href = hash.replace(/^manual\/([^\/]+)\/([^\/]+)\/(.+)$/, '../manual/#$1/$3').toLowerCase();
101+
102+
}
103+
96104
if ( hashLanguage === null ) {
97105

98106
// Route old non-localised api links

0 commit comments

Comments
 (0)