Skip to content

Commit 68c883f

Browse files
committed
Update download button to use anchor tag for direct file download link
1 parent f1d03cf commit 68c883f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • app/next-client-app/app/(protected)/scanreports/[id]/downloads

app/next-client-app/app/(protected)/scanreports/[id]/downloads/columns.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export const columns: ColumnDef<FileDownload>[] = [
8383
};
8484
return (
8585
<Button variant={"outline"} onClick={handleDownload}>
86-
Download <Download />
86+
Download{" "}
87+
<a href={`/api/download/${scan_report}/${id}`} target="_blank">
88+
<Download />
89+
</a>
8790
</Button>
8891
);
8992
},

0 commit comments

Comments
 (0)