diff --git a/models/ArticleAttachment.php b/models/ArticleAttachment.php index 50416c8..ab8f771 100644 --- a/models/ArticleAttachment.php +++ b/models/ArticleAttachment.php @@ -80,6 +80,6 @@ public function getArticle() public function getUrl() { - return $this->base_url .'/'. $this->path; + return Yii::getAlias('@storageUrl') . '/source/' . $this->path; } }