From a836b743115483b90b1a4fb3ead4aa299b4fd67b Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 11 Oct 2022 10:25:39 -0700 Subject: [PATCH] [Chore] Visualize link fix (#2395) (#2497) * Fix links in visualize plugin * Fix links to other apps Signed-off-by: Matt Provost (cherry picked from commit 551ffa322b12773775450082086a0fec2eeec9bf) --- .../public/application/utils/get_table_columns.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/plugins/visualize/public/application/utils/get_table_columns.tsx b/src/plugins/visualize/public/application/utils/get_table_columns.tsx index 747b4761b6c0..3a34262c34f7 100644 --- a/src/plugins/visualize/public/application/utils/get_table_columns.tsx +++ b/src/plugins/visualize/public/application/utils/get_table_columns.tsx @@ -104,13 +104,7 @@ export const getTableColumns = (application: ApplicationStart, history: History) // In case an error occurs i.e. the vis has wrong type, we render the vis but without the link !error ? ( { - if (editApp) { - application.navigateToApp(editApp, { path: editUrl }); - } else if (editUrl) { - history.push(editUrl); - } - }} + href={editApp ? application.getUrlForApp(editApp, { path: editUrl }) : `#${editUrl}`} data-test-subj={`visListingTitleLink-${title.split(' ').join('-')}`} > {field}