diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index e8e04b641a3..26231534f67 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -1067,6 +1067,10 @@ class Website extends CommonObject } } + // Regenerate index page to point to new index page + $pathofwebsite = $conf->website->dir_output.'/'.$object->ref; + dolSaveIndexPage($pathofwebsite, $pathofwebsite.'/index.php', $pathofwebsite.'/page'.$object->fk_default_home.'.tpl.php', $pathofwebsite.'/wrapper.php'); + if ($error) { $this->db->rollback();