16812: Removed download attribute, fixed redirectTo
[arvados-workbench2.git] / src / views-components / context-menu / actions / file-viewer-action.tsx
index a2c32bea875e32524be04532dd90957e6da06675..e58ea6a7888461599c8d45dd9dc663c0306b7710 100644 (file)
@@ -8,15 +8,13 @@ import { OpenIcon } from "~/components/icon/icon";
 import { sanitizeToken } from "./helpers";
 
 export const FileViewerAction = (props: { href?: any, download?: any, onClick?: () => void, kind?: string, currentCollectionUuid?: string; }) => {
-    const fileProps = props.download ? { download: props.download } : {};
 
     return props.href
         ? <a
             style={{ textDecoration: 'none' }}
-            href={sanitizeToken(props.href)}
+            href={sanitizeToken(props.href, false)}
             target="_blank"
-            onClick={props.onClick}
-            {...fileProps}>
+            onClick={props.onClick}>
             <ListItem button>
                     <ListItemIcon>
                         <OpenIcon />