= ({ step, index }) => (
-
+
@@ -87,6 +87,5 @@ export const ExecutedStep: FC = ({ step, index }) => (
-
>
);
diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.tsx
index 2e8ad4bd0c9a8..b81cf6bc1ec1d 100644
--- a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.tsx
+++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_screenshot_display.tsx
@@ -16,7 +16,7 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import React, { useContext, useEffect, useRef, useState, FC } from 'react';
import { useIntersection } from 'react-use';
-import { UptimeThemeContext } from '../../../contexts';
+import { UptimeSettingsContext, UptimeThemeContext } from '../../../contexts';
interface StepScreenshotDisplayProps {
screenshotExists?: boolean;
@@ -41,6 +41,8 @@ export const StepScreenshotDisplay: FC = ({
colors: { lightestShade: pageBackground },
} = useContext(UptimeThemeContext);
+ const { basePath } = useContext(UptimeSettingsContext);
+
const [isImagePopoverOpen, setIsImagePopoverOpen] = useState(false);
const [isOverlayOpen, setIsOverlayOpen] = useState(false);
@@ -59,7 +61,7 @@ export const StepScreenshotDisplay: FC = ({
}, [hasIntersected, isIntersecting, setHasIntersected]);
let content: JSX.Element | null = null;
- const imgSrc = `/api/uptime/journey/screenshot/${checkGroup}/${stepIndex}`;
+ const imgSrc = basePath + `/api/uptime/journey/screenshot/${checkGroup}/${stepIndex}`;
if (hasIntersected && screenshotExists) {
content = (
<>