NewsController: redirect after edit to /news instead of /news/[id]
This commit is contained in:
parent
b77c163aad
commit
ab82e1cbc0
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue