From: Vincent Vanwaelscappel Date: Thu, 18 Sep 2025 10:12:03 +0000 (+0200) Subject: wait #7746 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=76f8a4a6ee7ee5b8a719eb9ee46616f15f141764;p=fluidbook-toolbox.git wait #7746 @0.25 --- diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php index f58d8fe8f..ce4b78741 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php @@ -150,6 +150,11 @@ trait PreviewOperation } abort(404, __('Ce fichier n\'existe pas')); } + if ($isScorm && $path === 'index.html') { + $html = file_get_contents($relayPath); + $html = str_replace('', '', $html); + return $html; + } return XSendFileController::sendfile($relayPath); }