From 70c6484fcc4a44dded37593533776b2ea9ada333 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Mon, 7 Dec 2020 14:27:57 -0500 Subject: [PATCH] Fix download button not having token Fixes #3305 --- app/src/modules/files/routes/item.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/modules/files/routes/item.vue b/app/src/modules/files/routes/item.vue index abf1a8c49b..a3d3983889 100644 --- a/app/src/modules/files/routes/item.vue +++ b/app/src/modules/files/routes/item.vue @@ -417,7 +417,7 @@ export default defineComponent({ } function downloadFile() { - const filePath = getRootPath() + `assets/${props.primaryKey}?download`; + const filePath = addTokenToURL(getRootPath() + `assets/${props.primaryKey}?download`); window.open(filePath, '_blank'); }