A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Avoid prefetching assets and tags in the link component. Fixes #1759
Mohamed Bassem94f395875014
diff --git a/apps/web/app/settings/assets/page.tsx b/apps/web/app/settings/assets/page.tsxindex 0e7a3daa..14144455 100644--- a/apps/web/app/settings/assets/page.tsx+++ b/apps/web/app/settings/assets/page.tsx@@ -104,6 +104,7 @@ export default function AssetsSettingsPage() {target="_blank"rel="noopener noreferrer"className="flex items-center gap-1"+ prefetch={false}><ExternalLink className="size-4" /><span>View Asset</span>@@ -114,6 +115,7 @@ export default function AssetsSettingsPage() {<Linkhref={`/dashboard/preview/${asset.bookmarkId}`}className="flex items-center gap-1"+ prefetch={false}><ExternalLink className="size-4" /><span>View Bookmark</span>diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsxindex 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]}<p>{humanFriendlyNameForAssertType(asset.assetType)}</p>@@ -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}><Download className="size-4" /></Link>diff --git a/apps/web/components/dashboard/tags/TagPill.tsx b/apps/web/components/dashboard/tags/TagPill.tsxindex 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} <Separator orientation="vertical" /> {count}</Link>