diff --git a/docs/index.html b/docs/index.html index aa5696153ed3ad..56f33d8ac35a90 100644 --- a/docs/index.html +++ b/docs/index.html @@ -97,7 +97,13 @@

three.js

// Redirect to the manual - window.location.href = hash.replace(/^manual\/([^\/]+)\/([^\/]+)\/(.+)$/, '../manual/#$1/$3').toLowerCase(); + window.location.href = hash.replace( /^manual\/([^\/]+)\/([^\/]+)\/(.+)$/, '../manual/#$1/$3' ).toLowerCase(); + + } else { + + // Redirect to new docs + + window.location.href = hash.replace( /^api\/([^\/]+)\/([^\/]+)\/(.+)$/, '../docs_new/$3' ); } @@ -113,6 +119,10 @@

three.js

} + } else { + + window.location.href = '../docs_new/'; + } const languageSelect = document.getElementById( 'language' );