Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed Oct 6, 2024
1 parent 2c867f4 commit 311e57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IHP/FileStorage/ControllerFunctions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 311e57d

Please sign in to comment.