Skip to content

Scheduling infrastructure for absolutely everyone.

chore: Deactivate automatic link prefetching for `/blog` links (#7751)

Richard Poelderl2cc937ba87d5
diff --git a/packages/ui/components/card/Card.tsx b/packages/ui/components/card/Card.tsx
index 6b4a08e6348..d4674a0c60d 100644
--- a/packages/ui/components/card/Card.tsx
+++ b/packages/ui/components/card/Card.tsx
@@ -147,7 +147,10 @@ export function Card({
onClick={actionButton?.onClick}
target="_blank"
rel="noreferrer"
- className="text-xs font-medium">
+ className="text-xs font-medium"
+ // NextJS thinks this is an internal link and tries to prefetch it (also on hover), which fails
+ // TODO: Extract this into a constant to handle /docs & /developer as well
+ prefetch={!learnMore.href.startsWith("https://cal.com/blog")}>
{learnMore.text}
</Link>
)}