Skip to content

Commit

Permalink
use RedirectAppLinks in threat hunting
Browse files Browse the repository at this point in the history
  • Loading branch information
chantal-kelm committed Jul 19, 2024
1 parent 8808f5f commit 52c7401
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ import NavigationService from '../../../react-services/navigation-service';
export const MAX_ENTRIES_PER_QUERY = 10000;

const renderMitreTechnique = technique => (
<EuiLink
onClick={e => {
e.preventDefault();
NavigationService.getInstance().navigateToApp(mitreAttack.id, {
<RedirectAppLinks application={getCore().application}>
<EuiLink
href={NavigationService.getInstance().getUrlForApp(mitreAttack.id, {
path: `#/overview?tab=mitre&tabView=intelligence&tabRedirect=techniques&idToRedirect=${technique}`,
});
}}
>
{technique}
</EuiLink>
})}
>
{technique}
</EuiLink>
</RedirectAppLinks>
);

export const wzDiscoverRenderColumns: tDataGridRenderColumn[] = [
Expand Down

0 comments on commit 52c7401

Please sign in to comment.