From 486e0093cedce2411f3ab0d5daf087c37ef10c92 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 5 Nov 2024 19:53:16 +0100 Subject: [PATCH] wait #7175 @0.5 --- app/Fluidbook/Packager/Download.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Fluidbook/Packager/Download.php b/app/Fluidbook/Packager/Download.php index cc92348a9..6283d01ab 100644 --- a/app/Fluidbook/Packager/Download.php +++ b/app/Fluidbook/Packager/Download.php @@ -9,6 +9,7 @@ use Cubist\Backpack\Facades\App; use Cubist\Backpack\Magic\Models\ExternalServer; use Cubist\Net\Transfer\Driver; use Cubist\Net\Transfer\Local; +use Cubist\Net\Transfer\S3; use Cubist\Util\CommandLine\Rsync; use Cubist\Util\Files\Files; use Cubist\Util\Text; @@ -136,6 +137,9 @@ class Download extends DownloadBase $driver->copy($path, $dest, false, false); $url = $server->makeURL($dest); + if ($driver instanceof S3) { + $url .= '/index.' . $this->entry->htmlExtension; + } if (null !== $url) { $actions = [__('Voir sur :server', ['server' => $server->name]) => $url]; } -- 2.39.5