Commit 97de033
committed
fix: resolve 404 error for CSV file downloads from export directories
The download links in the exports page template were not correctly handling
files located in timestamped export directories (export_YYYY-MM-DD_HH-MM).
This caused 404 errors when users tried to download CSV files.
Fixed by updating the template to construct proper download URLs:
- For directory exports: /download/export_2025-07-11_15-43/ratings.csv
- For individual files: /download/ratings.csv
The fix uses template logic to check if the export ID starts with 'dir_'
and builds the appropriate URL path accordingly.1 parent 98788d1 commit 97de033
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
0 commit comments