From abbfbd5dff2cc741fe8d867e7139956874d65f81 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 31 Aug 2024 22:09:42 +0200 Subject: [PATCH] [docs-infra] Fix GitHub source link redirection (#43534) --- .../mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx b/packages/mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx index 224690db38440a..f432a3214c3588 100644 --- a/packages/mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx +++ b/packages/mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx @@ -107,14 +107,13 @@ export function ComponentLinkHeader(props: ComponentLinkHeaderProps) { size="small" variant="outlined" rel="nofollow" - href={`${process.env.SOURCE_CODE_REPO}/blob/v${process.env.LIB_VERSION}/${headers.githubSource}`} + href={`${process.env.SOURCE_CODE_REPO}/tree/v${process.env.LIB_VERSION}/${headers.githubSource}`} icon={} data-ga-event-category="ComponentLinkHeader" data-ga-event-action="click" data-ga-event-label="Source" data-ga-event-split="0.1" label="Source" - target="_blank" /> ) : null}