Header 301 'See Other' instead of HTTP redirect
This commit is contained in:
@@ -87,7 +87,7 @@ class Projects extends CI_Controller {
|
|||||||
|
|
||||||
$result = $this->project->create($data);
|
$result = $this->project->create($data);
|
||||||
if($result)
|
if($result)
|
||||||
redirect('/projects/detail/' . $result, 'refresh');
|
redirect('/projects/detail/' . $result, 301);
|
||||||
else {
|
else {
|
||||||
$tpl['error'][] = "Das Projekt konnte nicht gespeichert werden.";
|
$tpl['error'][] = "Das Projekt konnte nicht gespeichert werden.";
|
||||||
$this->load->view('project/new', $tpl);
|
$this->load->view('project/new', $tpl);
|
||||||
|
|||||||
Reference in New Issue
Block a user