diff --git a/extensions/apidoc/templates/bootstrap/ApiRenderer.php b/extensions/apidoc/templates/bootstrap/ApiRenderer.php index 45497f9808..0caf2cac39 100644 --- a/extensions/apidoc/templates/bootstrap/ApiRenderer.php +++ b/extensions/apidoc/templates/bootstrap/ApiRenderer.php @@ -100,7 +100,11 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer $baseUrl = 'https://github.com/yiisoft/yii2/blob/master'; switch ($this->getTypeCategory($type)) { case 'yii': - $url = '/framework/' . str_replace('\\', '/', substr($type->name, 4)) . '.php'; + if ($type->name == 'Yii') { + $url = '/framework/Yii.php'; + } else { + $url = '/framework/' . str_replace('\\', '/', substr($type->name, 4)) . '.php'; + } break; case 'app': return null;