Skip to content

Commit

Permalink
Merge pull request #1570 from hstastna/Inaccessible_Diagnostics_tab
Browse files Browse the repository at this point in the history
CNV-33531: Fix broken Diagnostics link in VM Overview Details card
  • Loading branch information
openshift-merge-robot authored Sep 27, 2023
2 parents 9624f19 + 1f21efe commit c2dfb99
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link } from 'react-router-dom';
import { useKubevirtTranslation } from '@kubevirt-utils/hooks/useKubevirtTranslation';
import { NO_DATA_DASH } from '@kubevirt-utils/resources/vm/utils/constants';
import { Popover, PopoverPosition, Text } from '@patternfly/react-core';
import { createURL } from '@virtualmachines/details/tabs/overview/utils/utils';

import StatusPopoverButton from '../StatusPopoverButton/StatusPopoverButton';

Expand All @@ -29,7 +30,7 @@ const VirtualMachineOverviewStatus: FC<VirtualMachineOverviewStatusProps> = ({
</Text>
<br />
<Text>
<Link to={(location) => location?.pathname + '/diagnostics'}>
<Link to={(location) => createURL('diagnostics', location?.pathname)}>
{t('View diagnostic')}
</Link>
</Text>
Expand Down

0 comments on commit c2dfb99

Please sign in to comment.