From 5e75da331924d18d9816eb7a72755c1dd08e4b08 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 11 Mar 2021 14:10:50 +0100 Subject: [PATCH] Fix return page if error --- htdocs/website/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 8f0a107fdc4..03cd9366aba 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2069,7 +2069,7 @@ if ($action == 'regeneratesite') { $result = symlink($pathtomedias, $pathtomediasinwebsite); if (!$result) { setEventMessages($langs->trans("ErrorFieldToCreateSymLinkToMedias", $pathtomediasinwebsite, $pathtomedias), null, 'errors'); - $action = 'importsite'; + $action = 'preview'; } }