diff --git a/src/Controllers/Admin/NewsController.php b/src/Controllers/Admin/NewsController.php index 838c9a94..b7f36940 100644 --- a/src/Controllers/Admin/NewsController.php +++ b/src/Controllers/Admin/NewsController.php @@ -164,6 +164,6 @@ class NewsController extends BaseController $this->addNotification('news.edit.success'); - return $this->redirect->to('/news/' . $news->id); + return $this->redirect->to('/news'); } } diff --git a/tests/Unit/Controllers/Admin/NewsControllerTest.php b/tests/Unit/Controllers/Admin/NewsControllerTest.php index bdf60862..04012b0d 100644 --- a/tests/Unit/Controllers/Admin/NewsControllerTest.php +++ b/tests/Unit/Controllers/Admin/NewsControllerTest.php @@ -204,7 +204,7 @@ class NewsControllerTest extends TestCase ->willReturn($canEditHtml); $this->response->expects($this->once()) ->method('redirectTo') - ->with('http://localhost/news/' . $id) + ->with('http://localhost/news') ->willReturn($this->response); /** @var NewsController $controller */