From 09de02322d5af6ab270301d7269366745643e0d9 Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Tue, 5 Jan 2021 06:32:34 -0800 Subject: [PATCH] Fix broken documentation link in Visualize app (#87250) --- docs/redirects.asciidoc | 5 +++++ src/core/public/doc_links/doc_links_service.ts | 2 +- src/plugins/visualize/public/application/utils/utils.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc index eb30d7556aa3e..585fa534ce7a7 100644 --- a/docs/redirects.asciidoc +++ b/docs/redirects.asciidoc @@ -214,3 +214,8 @@ This page has moved. Refer to <>. === Variables This page has moved. Refer to <>. + +[role="exclude",id="visualize"] +== Visualize + +This page has been removed. Refer to <>. \ No newline at end of file diff --git a/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts index 531647eb020b4..ad857926a3b1d 100644 --- a/src/core/public/doc_links/doc_links_service.ts +++ b/src/core/public/doc_links/doc_links_service.ts @@ -150,7 +150,7 @@ export class DocLinksService { regressionEvaluation: `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-dfanalytics-evaluate.html#ml-dfanalytics-regression-evaluation`, }, visualize: { - guide: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/visualize.html`, + guide: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/dashboard.html`, timelionDeprecation: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/dashboard.html#timelion-deprecation`, lens: `${ELASTIC_WEBSITE_URL}what-is/kibana-lens`, maps: `${ELASTIC_WEBSITE_URL}maps`, diff --git a/src/plugins/visualize/public/application/utils/utils.ts b/src/plugins/visualize/public/application/utils/utils.ts index 3d8d443d714a5..779cfb22f7bca 100644 --- a/src/plugins/visualize/public/application/utils/utils.ts +++ b/src/plugins/visualize/public/application/utils/utils.ts @@ -31,7 +31,7 @@ export const addHelpMenuToAppChrome = (chrome: ChromeStart, docLinks: DocLinksSt links: [ { linkType: 'documentation', - href: `${docLinks.ELASTIC_WEBSITE_URL}guide/en/kibana/${docLinks.DOC_LINK_VERSION}/visualize.html`, + href: `${docLinks.links.visualize.guide}`, }, ], });