]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5996 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jun 2023 12:32:36 +0000 (14:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jun 2023 12:32:36 +0000 (14:32 +0200)
app/Http/Controllers/Admin/Operations/FluidbookCollection/PreviewOperation.php

index dfc0ee59985c8629fa14ab4cd0fcc02a99ef285b..12f95a1d5092cc8d83cc4cca914996e5497b1cab 100644 (file)
@@ -81,6 +81,9 @@ trait PreviewOperation
         }
 
         $relayPath = $dest . '/' . $path;
+        if (file_exists($relayPath) && is_dir($relayPath) && file_exists($relayPath . '/index.html')) {
+            $relayPath = $relayPath . '/index.html';
+        }
         if (!file_exists($relayPath)) {
             throw new \Exception($relayPath . ' not found');
         }