diff --git a/static-site/content/featured-analyses.yaml b/static-site/content/featured-analyses.yaml index 360ddf72a..b7dd77159 100644 --- a/static-site/content/featured-analyses.yaml +++ b/static-site/content/featured-analyses.yaml @@ -3,7 +3,6 @@ # rendered on the splash page. # - When adding or modifying descriptions, ensure it takes up at most two lines # when rendered on the splash page. -# - Ensure URLs start with `/`. - name: Mpox in the DRC description: INRB analysis of ongoing mpox clade I outbreak in the DRC diff --git a/static-site/src/components/splash/index.tsx b/static-site/src/components/splash/index.tsx index 73b6b8561..bc6ee8b05 100644 --- a/static-site/src/components/splash/index.tsx +++ b/static-site/src/components/splash/index.tsx @@ -255,6 +255,10 @@ function TileSourceIcon({ url, isNarrative }: { let maintainers: string, image: React.JSX.Element; + if (!url.startsWith('/')) { + url = '/' + url; + } + if (url.startsWith('/community')) { const owner = isNarrative ? url.split('/')[3] : url.split('/')[2]; maintainers = `${owner} on GitHub`;