From 94f39587501404f564511dd2fdc77c90efca99d1 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 26 Jul 2025 12:07:19 +0000 Subject: fix: Avoid prefetching assets and tags in the link component. Fixes #1759 --- apps/web/components/dashboard/preview/AttachmentBox.tsx | 2 ++ apps/web/components/dashboard/tags/TagPill.tsx | 1 + 2 files changed, 3 insertions(+) (limited to 'apps/web/components/dashboard') diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsx index 674f151c..87c56eb8 100644 --- a/apps/web/components/dashboard/preview/AttachmentBox.tsx +++ b/apps/web/components/dashboard/preview/AttachmentBox.tsx @@ -98,6 +98,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) { target="_blank" href={getAssetUrl(asset.id)} className="flex items-center gap-1" + prefetch={false} > {ASSET_TYPE_TO_ICON[asset.assetType]}

{humanFriendlyNameForAssertType(asset.assetType)}

@@ -109,6 +110,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) { href={getAssetUrl(asset.id)} className="flex items-center gap-1" download={humanFriendlyNameForAssertType(asset.assetType)} + prefetch={false} > diff --git a/apps/web/components/dashboard/tags/TagPill.tsx b/apps/web/components/dashboard/tags/TagPill.tsx index 91bd8504..81d700cd 100644 --- a/apps/web/components/dashboard/tags/TagPill.tsx +++ b/apps/web/components/dashboard/tags/TagPill.tsx @@ -82,6 +82,7 @@ export function TagPill({ href={`/dashboard/tags/${id}`} data-id={id} draggable={false} + prefetch={false} > {name} {count} -- cgit v1.2.3-70-g09d2