diff --git a/x-pack/plugins/security_solution/public/common/components/help_menu/index.tsx b/x-pack/plugins/security_solution/public/common/components/help_menu/index.tsx index 20bb4f51c075b..28ff98d5c9c88 100644 --- a/x-pack/plugins/security_solution/public/common/components/help_menu/index.tsx +++ b/x-pack/plugins/security_solution/public/common/components/help_menu/index.tsx @@ -32,7 +32,7 @@ export const HelpMenu = React.memo(() => { content: i18n.translate('xpack.securitySolution.chrome.helpMenu.documentation.ecs', { defaultMessage: 'ECS documentation', }), - href: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/ecs/current/index.html`, + href: docLinks.links.ecs.guide, iconType: 'documents', linkType: 'custom', target: '_blank', diff --git a/x-pack/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx b/x-pack/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx index cc6ac5355f90b..d7d62d82a95b0 100644 --- a/x-pack/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx +++ b/x-pack/plugins/security_solution/public/common/components/ml_popover/ml_popover.tsx @@ -197,7 +197,7 @@ export const MlPopover = React.memo(() => { values={{ mlDocs: ( diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.test.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.test.tsx index 935a5ff336c00..70b98eb22fd89 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.test.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.test.tsx @@ -20,6 +20,9 @@ describe('UpdatePrePackagedRulesCallOut', () => { docLinks: { ELASTIC_WEBSITE_URL: '', DOC_LINK_VERSION: '', + links: { + siem: { ruleChangeLog: '' }, + }, }, }, }); diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.tsx index 754acea40ed9b..9d67a1e6b9ae8 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/pre_packaged_rules/update_callout.tsx @@ -56,10 +56,7 @@ const UpdatePrePackagedRulesCallOutComponent: React.FC {prepackagedRulesOrTimelines?.callOutMessage}
- + {i18n.RELEASE_NOTES_HELP}

diff --git a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_no_index.tsx b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_no_index.tsx index b65cb5069d399..19219208b4079 100644 --- a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_no_index.tsx +++ b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_no_index.tsx @@ -33,7 +33,7 @@ const DetectionEngineNoIndexComponent: React.FC<{ detections: { icon: 'documents', label: i18n.GO_TO_DOCUMENTATION, - url: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/security/${docLinks.DOC_LINK_VERSION}/detections-permissions-section.html`, + url: `${docLinks.links.siem.detectionsReq}`, target: '_blank', }, }), diff --git a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_user_unauthenticated.tsx b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_user_unauthenticated.tsx index 19dd14c46a4a9..c725bae54b06c 100644 --- a/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_user_unauthenticated.tsx +++ b/x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine_user_unauthenticated.tsx @@ -18,7 +18,7 @@ export const DetectionEngineUserUnauthenticated = React.memo(() => { detectionUnauthenticated: { icon: 'documents', label: i18n.GO_TO_DOCUMENTATION, - url: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/security/${docLinks.DOC_LINK_VERSION}/detections-permissions-section.html`, + url: `${docLinks.links.siem.detectionsReq}`, target: '_blank', }, }), diff --git a/x-pack/plugins/security_solution/public/management/components/management_empty_state.tsx b/x-pack/plugins/security_solution/public/management/components/management_empty_state.tsx index a3b1597377fa0..33e2980dcc112 100644 --- a/x-pack/plugins/security_solution/public/management/components/management_empty_state.tsx +++ b/x-pack/plugins/security_solution/public/management/components/management_empty_state.tsx @@ -24,6 +24,7 @@ import { import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n/react'; import onboardingLogo from '../images/security_administration_onboarding.svg'; +import { useKibana } from '../../common/lib/kibana'; const TEXT_ALIGN_CENTER: CSSProperties = Object.freeze({ textAlign: 'center', @@ -44,6 +45,7 @@ const PolicyEmptyState = React.memo<{ onActionClick: (event: MouseEvent) => void; actionDisabled?: boolean; }>(({ loading, onActionClick, actionDisabled }) => { + const docLinks = useKibana().services.docLinks; return (
{loading ? ( @@ -83,7 +85,7 @@ const PolicyEmptyState = React.memo<{ id="xpack.securitySolution.endpoint.policyList.onboardingSectionThree" defaultMessage="To get started, add the Endpoint Security integration to your Agents. For more information, " /> - + { embeddable: { EmbeddablePanel: jest.fn(() =>
), }, - docLinks: { ELASTIC_WEBSITE_URL: 'ELASTIC_WEBSITE_URL' }, + docLinks: { + ELASTIC_WEBSITE_URL: 'ELASTIC_WEBSITE_URL', + links: { + siem: { networkMap: '' }, + }, + }, }, }), }; diff --git a/x-pack/plugins/security_solution/public/network/components/embeddables/embedded_map.tsx b/x-pack/plugins/security_solution/public/network/components/embeddables/embedded_map.tsx index 6e36b85e3819c..f2cb974a5b5c1 100644 --- a/x-pack/plugins/security_solution/public/network/components/embeddables/embedded_map.tsx +++ b/x-pack/plugins/security_solution/public/network/components/embeddables/embedded_map.tsx @@ -221,10 +221,7 @@ export const EmbeddedMapComponent = ({ - + {i18n.EMBEDDABLE_HEADER_HELP} diff --git a/x-pack/plugins/security_solution/public/network/components/embeddables/index_patterns_missing_prompt.tsx b/x-pack/plugins/security_solution/public/network/components/embeddables/index_patterns_missing_prompt.tsx index 43e57e519e238..b0e2e6cd7f186 100644 --- a/x-pack/plugins/security_solution/public/network/components/embeddables/index_patterns_missing_prompt.tsx +++ b/x-pack/plugins/security_solution/public/network/components/embeddables/index_patterns_missing_prompt.tsx @@ -39,7 +39,7 @@ export const IndexPatternsMissingPromptComponent = () => { ), beats: (