diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx index f2496c5..e4315f3 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx @@ -313,7 +313,7 @@ export function ArtifactFilePreview({ return {children}; } - // Check if it's a citation link + // Only render as CitationLink badge if it's a citation (in citationMap) const citation = citationMap.get(href); if (citation) { return ( @@ -323,19 +323,14 @@ export function ArtifactFilePreview({ ); } - // Check if it's an external link (http/https) - const isExternalLink = - href.startsWith("http://") || href.startsWith("https://"); - - if (isExternalLink) { - return ( - {children} - ); - } - - // Internal/anchor link + // All other links (including project URLs) render as plain links return ( - + {children} );