mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 968dffac4f
)
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
This commit is contained in:
parent
edcb625057
commit
b406d2be88
1 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { useFetcher } from '../../../../hooks/use_fetcher';
|
||||
import { useKibanaServices } from '../../../../hooks/use_kibana_services';
|
||||
import { I18LABELS } from '../translations';
|
||||
import { CsmSharedContext } from '../csm_shared_context';
|
||||
import { FETCH_STATUS } from '../../../../../../observability/public';
|
||||
|
@ -32,6 +33,8 @@ interface JSErrorItem {
|
|||
}
|
||||
|
||||
export function JSErrors() {
|
||||
const { http } = useKibanaServices();
|
||||
const basePath = http.basePath.get();
|
||||
const { rangeId, urlParams, uxUiFilters } = useLegacyUrlParams();
|
||||
|
||||
const { start, end, serviceName, searchTerm } = urlParams;
|
||||
|
@ -70,7 +73,9 @@ export function JSErrors() {
|
|||
field: 'errorMessage',
|
||||
name: I18LABELS.errorMessage,
|
||||
render: (errorMessage: string, item: JSErrorItem) => (
|
||||
<EuiLink href={`/services/${serviceName}/errors/${item.errorGroupId}`}>
|
||||
<EuiLink
|
||||
href={`${basePath}/app/apm/services/${serviceName}/errors/${item.errorGroupId}`}
|
||||
>
|
||||
{errorMessage}
|
||||
</EuiLink>
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue