From 319ed2ac72596bf373912172f3ec6989e2c3a8e6 Mon Sep 17 00:00:00 2001 From: Tim Bastin <bastin.tim@gmail.com> Date: Mon, 3 Mar 2025 14:17:52 +0100 Subject: [PATCH] using relative urls for svgs --- src/components/ResultGrid.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ResultGrid.tsx b/src/components/ResultGrid.tsx index 65fd5a6..1327c16 100644 --- a/src/components/ResultGrid.tsx +++ b/src/components/ResultGrid.tsx @@ -2,6 +2,7 @@ import Image from 'next/image' import { SarifApiResponse } from '../lib/apiClient' import { cn } from '../lib/utils' import ResultTable from './ResultTable' +import { config } from '../config' interface Props { currentScan: SarifApiResponse | null @@ -55,7 +56,12 @@ export default function ResultGrid({ currentScan }: Props) { !badge.badgeGranted && 'opacity-50', )} - src={badge.badgeUrl} + src={ + config.API_BASE_URL.replace( + '/api/v1', + '', + ) + badge.badgeUrl + } fill alt={badge.badgeId} /> -- GitLab