diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.test.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.test.tsx index a6992b71878be..9591b82773b9f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.test.tsx @@ -11,6 +11,8 @@ import React from 'react'; import { shallow, ShallowWrapper } from 'enzyme'; +import { docLinks } from '../../../shared/doc_links'; + import { CrawlerLanding } from './crawler_landing'; describe('CrawlerLanding', () => { @@ -29,7 +31,7 @@ describe('CrawlerLanding', () => { const externalDocumentationLink = wrapper.find('[data-test-subj="CrawlerDocumentationLink"]'); expect(externalDocumentationLink.prop('href')).toBe( - 'https://www.elastic.co/guide/en/app-search/current/web-crawler.html' + `${docLinks.appSearchBase}/web-crawler.html` ); }); diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.tsx index ec5c69b9d7845..dadb757ab607f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_landing.tsx @@ -19,7 +19,7 @@ import { import { i18n } from '@kbn/i18n'; import { getAppSearchUrl } from '../../../shared/enterprise_search_url'; -import { ENGINE_CRAWLER_PATH } from '../../routes'; +import { DOCS_PREFIX, ENGINE_CRAWLER_PATH } from '../../routes'; import { generateEnginePath } from '../engine'; import './crawler_landing.scss'; @@ -49,9 +49,8 @@ export const CrawlerLanding: React.FC = () => ( } )}{' '} {i18n.translate(