fix redirect

This commit is contained in:
Brett O'Donnell 2018-04-12 18:25:33 +09:30
parent ebb5245fde
commit 8fd6888d18

View File

@ -168,7 +168,7 @@ class ModController extends Controller
}
$model->delete();
Yii::$app->getSession()->setFlash('danger', Yii::t('app', 'Mod source could not be found updated so mod was deleted.'));
return $this->redirect(['index']);
return $this->redirect(Yii::$app->homeUrl);
}