From 303d3a1f90057c44fc0ef3c06bb4c62485013935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E6=AD=A3=E6=B5=B7?= Date: Sat, 5 Nov 2016 21:58:37 +0800 Subject: [PATCH] fix url rewrite bug closes #141 --- frontend/modules/topic/controllers/DefaultController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([