16812: Handoff token using query param
[arvados-workbench2.git] / src / views-components / context-menu / actions / file-viewer-action.tsx
index e58ea6a7888461599c8d45dd9dc663c0306b7710..9af2ef92042a39eb8905345c66af81af9438b6dc 100644 (file)
@@ -12,17 +12,17 @@ export const FileViewerAction = (props: { href?: any, download?: any, onClick?:
     return props.href
         ? <a
             style={{ textDecoration: 'none' }}
-            href={sanitizeToken(props.href, false)}
+            href={sanitizeToken(props.href, true)}
             target="_blank"
             onClick={props.onClick}>
             <ListItem button>
-                    <ListItemIcon>
-                        <OpenIcon />
-                    </ListItemIcon>
+                <ListItemIcon>
+                    <OpenIcon />
+                </ListItemIcon>
                 <ListItemText>
                     Open in new tab
-                </ListItemText>
+                 </ListItemText>
             </ListItem>
         </a>
         : null;
-};
\ No newline at end of file
+};