Skip to content

Commit

Permalink
Fixed Google Link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Slepnev committed Sep 22, 2022
1 parent 6a8f235 commit 8df13a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Reader/FileReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public function read(): array
$result[] = [
'path' => $dir->getPath() . DIRECTORY_SEPARATOR . $fileName,
'fileGenerationTime' => $fileGenerationTime,
'link' => $storeMediaUrl . $dir,
'link' => $storeMediaUrl . str_replace('media/', '', $dir->getPath())
. DIRECTORY_SEPARATOR . $fileName,
'fileName' => $fileName,
'store' => $stores[1] ?? 'default'
];
Expand Down

0 comments on commit 8df13a5

Please sign in to comment.