diff --git a/frontend/modules/topic/controllers/DefaultController.php b/frontend/modules/topic/controllers/DefaultController.php index 137905e..c4602d3 100644 --- a/frontend/modules/topic/controllers/DefaultController.php +++ b/frontend/modules/topic/controllers/DefaultController.php @@ -142,7 +142,7 @@ public function actionView($id) //登录才能访问的节点内容 if (\Yii::$app->user->isGuest && in_array($model->category->alias, params('loginNode'))) { $this->flash('查看本主题需要登录!', 'warning'); - return $this->redirect('/login'); + return $this->redirect(['/site/login']); } $dataProvider = new ActiveDataProvider([