未验证 提交 0ec242d9 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14846 from fordhurley/fix-docs-path

Strip localization code from docs `[path]` template variable
......@@ -35,6 +35,10 @@ function onDocumentLoad( event ) {
case 'api':
path = /\/api\/[A-z0-9\/]+/.exec( pathname ).toString().substr( 5 );
// Remove localized part of the path (e.g. 'en/' or 'es-MX/'):
path = path.replace( /^[A-z0-9-]+\//, '' );
break;
case 'examples':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册