16812: Handoff token using query param
[arvados-workbench2.git] / src / views-components / context-menu / actions / download-collection-file-action.tsx
index 9332d170f82856bb714b7c05ff99c4377a6a67bf..437b22ed00cf5c81afc9525741c846be1eb112d0 100644 (file)
@@ -17,7 +17,7 @@ const mapStateToProps = (state: RootState) => {
         const file = getNodeValue(resource.uuid)(state.collectionPanelFiles);
         if (file) {
             return {
-                href: sanitizeToken(file.url, false),
+                href: sanitizeToken(file.url, true),
                 kind: 'file',
                 currentCollectionUuid
             };
@@ -25,7 +25,7 @@ const mapStateToProps = (state: RootState) => {
     } else {
         const files = filterCollectionFilesBySelection(state.collectionPanelFiles, true);
         return {
-            href: files.map(file => sanitizeToken(file.url, false)),
+            href: files.map(file => sanitizeToken(file.url, true)),
             kind: 'files',
             currentCollectionUuid
         };