From 489ad5e6f1d5fb82b68da50faf35d919cdf0a476 Mon Sep 17 00:00:00 2001 From: lcawl Date: Mon, 4 Jan 2021 14:14:10 -0800 Subject: [PATCH 1/2] Use doc link service in Visualize, add redirect --- docs/redirects.asciidoc | 5 +++++ src/plugins/visualize/public/application/utils/utils.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc index 931a783654a91..fc5853cf27803 100644 --- a/docs/redirects.asciidoc +++ b/docs/redirects.asciidoc @@ -198,3 +198,8 @@ This page has moved. Refer to <>. === Variables This page has moved. Refer to <>. + +[role="exclude",id="visualize"] +== Visualize + +This page has been removed. \ No newline at end of file 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}`, }, ], }); From c7adb971925b9e6efde222698e2e60fe3eba0530 Mon Sep 17 00:00:00 2001 From: lcawl Date: Mon, 4 Jan 2021 14:29:32 -0800 Subject: [PATCH 2/2] Changes Visualize links to Dashboard URL --- docs/redirects.asciidoc | 2 +- src/core/public/doc_links/doc_links_service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc index fc5853cf27803..2f605f3af01b8 100644 --- a/docs/redirects.asciidoc +++ b/docs/redirects.asciidoc @@ -202,4 +202,4 @@ This page has moved. Refer to <>. [role="exclude",id="visualize"] == Visualize -This page has been removed. \ No newline at end of file +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 0c65a26b2387b..0d9f39cc46717 100644 --- a/src/core/public/doc_links/doc_links_service.ts +++ b/src/core/public/doc_links/doc_links_service.ts @@ -155,7 +155,7 @@ export class DocLinksService { guide: `${ELASTICSEARCH_DOCS}transforms.html`, }, 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`,