Skip to content

Commit 0af3d9c

Browse files
tomsonplCAWilson94
authored andcommitted
[EDR Workflows] Fix wrong endpoint link (elastic#202434)
1 parent 652f311 commit 0af3d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/hooks/use_endpoint_action_items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const useEndpointActionItems = (
5656
const endpointMetadata = endpointInfo.metadata;
5757
const isIsolated = isEndpointHostIsolated(endpointMetadata);
5858
const endpointId = endpointMetadata.agent.id;
59-
const endpointHostName = endpointMetadata.host.hostname;
59+
const endpointHostName = endpointMetadata.host.hostname.toLowerCase();
6060
const fleetAgentId = endpointMetadata.elastic.agent.id;
6161
const { show, selected_endpoint: _selectedEndpoint, ...currentUrlParams } = allCurrentUrlParams;
6262
const endpointActionsPath = getEndpointDetailsPath({

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ describe('when on the endpoint list page', () => {
13061306
it('navigates to the Security Solution Host Details page', async () => {
13071307
const hostLink = await renderResult.findByTestId('hostLink');
13081308
expect(hostLink.getAttribute('href')).toEqual(
1309-
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname}`
1309+
`${APP_PATH}/hosts/${hostInfo[0].metadata.host.hostname.toLowerCase()}`
13101310
);
13111311
});
13121312
it('navigates to the correct Ingest Agent Policy page', async () => {

0 commit comments

Comments
 (0)