Skip to content

Commit

Permalink
Changed redirect code from 200 to 302.
Browse files Browse the repository at this point in the history
  • Loading branch information
almirb committed Dec 6, 2018
1 parent 19093b0 commit c5f4489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crud/default/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function actionDelete(<?= $actionParams ?>)
}

if (Yii::$app->request->isAjax) {
return Yii::$app->getResponse()->redirect(Yii::$app->request->referrer, 200, false);
return Yii::$app->getResponse()->redirect(Yii::$app->request->referrer, 302, false);
} else {
<?php if ($generator->generateFlashMessages) : ?>
Yii::$app->session->setFlash('success', <?= $generator->generateString('Item successfully erased!') ?>);
Expand Down

0 comments on commit c5f4489

Please sign in to comment.