diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/columns.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/columns.tsx
index 1d20407f8bbe7..f81f10aa3a19b 100644
--- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/columns.tsx
+++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/analytics_list/columns.tsx
@@ -19,6 +19,8 @@ import {
EuiLink,
RIGHT_ALIGNMENT,
} from '@elastic/eui';
+// @ts-ignore
+import { getJobIdUrl } from '../../../../../jobs/jobs_list/components/utils';
import { getAnalysisType, DataFrameAnalyticsId } from '../../../../common';
import { getResultsUrl } from './common';
@@ -136,11 +138,7 @@ export const progressColumn = {
};
export const getDFAnalyticsJobIdLink = (item: DataFrameAnalyticsListRow) => {
- return (
-
- {item.id}
-
- );
+ return {item.id};
};
export const getColumns = (
diff --git a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/jobs_list/jobs_list.js b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/jobs_list/jobs_list.js
index 7036b4f64b3c5..9ec7be58d7589 100644
--- a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/jobs_list/jobs_list.js
+++ b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/jobs_list/jobs_list.js
@@ -71,7 +71,7 @@ export class JobsList extends Component {
return id;
}
- return {id};
+ return {id};
}
getPageOfJobs(index, size, sortField, sortDirection) {
diff --git a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/utils.js b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/utils.js
index 1f2a57f999775..d536d346129ca 100644
--- a/x-pack/plugins/ml/public/application/jobs/jobs_list/components/utils.js
+++ b/x-pack/plugins/ml/public/application/jobs/jobs_list/components/utils.js
@@ -367,7 +367,7 @@ function jobProperty(job, prop) {
return job[propMap[prop]];
}
-export function getJobIdUrl(jobId) {
+export function getJobIdUrl(tabId, jobId) {
// Create url for filtering by job id for kibana management table
const settings = {
jobId,
@@ -376,7 +376,7 @@ export function getJobIdUrl(jobId) {
const url = `?mlManagement=${encoded}`;
const basePath = getBasePath();
- return `${basePath.get()}/app/ml#/jobs${url}`;
+ return `${basePath.get()}/app/ml#/${tabId}${url}`;
}
function getUrlVars(url) {