Skip to content

Commit 6e50153

Browse files
committed
fix: Update FileDetails link to use site domain with file s3 key
1 parent c717237 commit 6e50153

File tree

1 file changed

+2
-1
lines changed
  • frontend/pages/sites/$siteId/storage

1 file changed

+2
-1
lines changed

frontend/pages/sites/$siteId/storage/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function FileStoragePage() {
6161
const foundFileDetails = fetchedPublicFiles?.find(
6262
(file) => file.name === queryFileDetails,
6363
);
64+
6465
const scrollTo = useRef(null);
6566
function scrollToTop() {
6667
return scrollTo.current?.scrollIntoView({ behavior: 'smooth', block: 'start' });
@@ -238,7 +239,7 @@ function FileStoragePage() {
238239
<FileDetails
239240
name={foundFileDetails?.name || ''}
240241
id={foundFileDetails?.id}
241-
fullPath={`${storageRoot}${path}${foundFileDetails?.name}`}
242+
fullPath={`${site.liveDomain}${path}${foundFileDetails?.key}`}
242243
lastModifiedBy={foundFileDetails?.lastModifiedBy || ''}
243244
lastModifiedAt={foundFileDetails?.lastModifiedAt || ''}
244245
size={foundFileDetails?.metadata.size || 0}

0 commit comments

Comments
 (0)