]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5396 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Aug 2022 18:20:02 +0000 (20:20 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Aug 2022 18:20:02 +0000 (20:20 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php

index 20d4a35a17da80075905eb0096d2a77f5ff82ac4..b0bddfffa2dc75a68426cd8244b86bed25e548f8 100644 (file)
@@ -45,7 +45,7 @@ trait PreviewOperation
         $nointerface = !!request('nointerface', false);
         $shortLoading = !!request('shortLoading', false);
 
-        if (null === $time || ($time < (time() - 60) && !$nointerface && !$shortLoading)) {
+        if (null === $time || ((null === $path || $path === 'index.html') && $time < (time() - 60) && !$nointerface && !$shortLoading)) {
             $url = backpack_url($segment . '/preview/' . $id . '_' . $hash . '_' . time()) . '/' . $q;
             return $this->loadingCompile($url, $id, $hash);
         }