Fixes S3 media items in bucket root folders (#3461)

FIxes #3445. Credit to @rajakhoury
This commit is contained in:
Raja Khoury 2018-03-20 10:57:13 -06:00 committed by Luke Towers
parent 610452078d
commit d977ba54b5
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ class MediaLibrary
? $this->getStorageDisk()->size($path)
: $this->getFolderItemCount($path);
$publicUrl = $this->storagePath.$relativePath;
$publicUrl = $this->getPathUrl($relativePath);
return new MediaLibraryItem($relativePath, $size, $lastModified, $itemType, $publicUrl);
}