diff --git a/IHP/FileStorage/ControllerFunctions.hs b/IHP/FileStorage/ControllerFunctions.hs index 06450652c..9ae9dab88 100644 --- a/IHP/FileStorage/ControllerFunctions.hs +++ b/IHP/FileStorage/ControllerFunctions.hs @@ -230,7 +230,7 @@ createTemporaryDownloadUrlFromPathWithExpiredAt validInSeconds objectPath = do let url = if any (`isPrefixOf` objectPath) urlSchemes -- BC, before we saved only the relative path of a file, we saved the full URL. So use it as is. - then "/" <> objectPath + then objectPath -- We have the relative path, so add the baseUrl. else frameworkConfig.baseUrl <> "/" <> objectPath