Skip to content

Commit

Permalink
Fix redirection to legacy event_analytics URL from dashboards (opense…
Browse files Browse the repository at this point in the history
…arch-project#399)

Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 authored Apr 19, 2023
1 parent 6309e63 commit 05ef180
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

import { EuiButton, EuiContextMenu, EuiPopover } from '@elastic/eui';
import React, { useState } from 'react';
import {
CREATE_TAB_PARAM,
CREATE_TAB_PARAM_KEY,
TAB_CHART_ID,
} from '../../../../common/constants/explorer';
import { observabilityLogsID } from '../../../../common/constants/shared';

interface AddVisualizationPopoverProps {
showFlyout: (isReplacement?: boolean, replaceVizId?: string) => void;
Expand All @@ -27,7 +33,9 @@ export const AddVisualizationPopover = ({

const advancedVisualization = () => {
closeVizPopover();
window.location.assign('#/event_analytics/explorer');
window.location.assign(
`${observabilityLogsID}#/explorer?${CREATE_TAB_PARAM_KEY}=${CREATE_TAB_PARAM[TAB_CHART_ID]}`
);
};

const getVizContextPanels = () => {
Expand Down

0 comments on commit 05ef180

Please sign in to comment.