Skip to content

Commit

Permalink
fix url rewrite bug closes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho authored Nov 5, 2016
1 parent fb96795 commit 303d3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/modules/topic/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 303d3a1

Please sign in to comment.