Mr.doob 11 месяцев назад
Родитель
Сommit
49f25c6e5e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      docs/index.html

+ 8 - 0
docs/index.html

@@ -93,6 +93,14 @@
 
 				const hashLanguage = /^(api|manual|examples)\/(en|ar|ko|zh|it|pt-br|fr)\//.exec( hash );
 
+				if ( hashLanguage[ 1 ] === 'manual' ) {
+
+					// Redirect to the manual
+
+					window.location.href = hash.replace(/^manual\/([^\/]+)\/([^\/]+)\/(.+)$/, '../manual/#$1/$3').toLowerCase();
+
+				}
+
 				if ( hashLanguage === null ) {
 
 					// Route old non-localised api links

粤ICP备19079148号