diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index 1c9c234db9f..ca038935af9 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2854,7 +2854,7 @@ if (!GETPOST('hide_websitemenu'))
$htmltext = $langs->trans("PreviewSiteServedByDolibarr", $langs->transnoentitiesnoconv("Page"), $langs->transnoentitiesnoconv("Page"), $realpage, $dataroot);
$htmltext .= '
'.$langs->trans("CheckVirtualHostPerms", $langs->transnoentitiesnoconv("ReadPerm"), '{s1}');
- $htmltext = str_replace('{s1}', $dataroot.'
'.DOL_DATA_ROOT.'/medias'.'
'.DOL_DOCUMENT_ROOT, $htmltext);
+ $htmltext = str_replace('{s1}', $dataroot.'
'.DOL_DATA_ROOT.'/medias
'.DOL_DOCUMENT_ROOT, $htmltext);
//$htmltext .= '
'.$langs->trans("CheckVirtualHostPerms", $langs->transnoentitiesnoconv("WritePerm"), '{s1}');
//$htmltext = str_replace('{s1}', DOL_DATA_ROOT.'/medias', $htmltext);