From ea2a7a4ac72a463e484663789afa77bc6bf4ddfc Mon Sep 17 00:00:00 2001
From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com>
Date: Wed, 16 Sep 2026 18:12:35 -0600
Subject: [PATCH 1/6] fix: prefix basePath on root-relative src
Production serves under /docs. next/link adds the prefix,
and
next/image do not, so /sourcegraph-mark.svg in the mobile nav and the
LinkCards/ProductCards icons, plus a couple of root-relative markdown
images, 404 on sourcegraph.com.
---
src/components/MobileNavigation.tsx | 3 ++-
src/components/mdx/LinkCards.tsx | 7 ++++++-
src/components/mdx/ProductCards.tsx | 7 ++++++-
src/components/mdx/ZoomableImage.tsx | 12 +++++++++++-
src/lib/utils.ts | 9 +++++++++
5 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/src/components/MobileNavigation.tsx b/src/components/MobileNavigation.tsx
index a59ac44db..aff20d9f1 100644
--- a/src/components/MobileNavigation.tsx
+++ b/src/components/MobileNavigation.tsx
@@ -6,6 +6,7 @@ import Link from 'next/link';
import {usePathname, useSearchParams} from 'next/navigation';
import {Dialog} from '@headlessui/react';
import {Navigation} from '@/components/Navigation';
+import {withBasePath} from '@/lib/utils';
function MenuIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
@@ -100,7 +101,7 @@ export function MobileNavigation() {