diff --git a/hbase-website/app/pages/_docs/docs/index.tsx b/hbase-website/app/pages/_docs/docs/index.tsx
index 4bb6cad4b225..073c6c4dfaab 100644
--- a/hbase-website/app/pages/_docs/docs/index.tsx
+++ b/hbase-website/app/pages/_docs/docs/index.tsx
@@ -148,6 +148,18 @@ const renderer = toClientRenderer(
}
}
+ // Bare fragment links must use a plain — React Router's Link resolves
+ // to="#fragment" relative to the current pathname, producing e.g.
+ // /docs/single-page#transactions, which Chrome embeds as an absolute
+ // localhost URL in PDFs instead of an internal GoTo annotation.
+ if (transformedHref?.startsWith("#")) {
+ return (
+
+ {children}
+
+ );
+ }
+
// Use default Link component for all links (external links are handled by Link component)
return (