diff --git a/src/lib/components/chat/Messages/CitationsModal.svelte b/src/lib/components/chat/Messages/CitationsModal.svelte index 8ff23e75d..bb48a3f53 100644 --- a/src/lib/components/chat/Messages/CitationsModal.svelte +++ b/src/lib/components/chat/Messages/CitationsModal.svelte @@ -90,8 +90,8 @@ class="hover:text-gray-500 hover:dark:text-gray-100 underline flex-grow" href={document?.metadata?.file_id ? `/api/v1/files/${document?.metadata?.file_id}/content${document?.metadata?.page !== undefined ? `#page=${document.metadata.page + 1}` : ''}` - : document.source.name.includes('http') - ? document.source.name + : document.source?.url?.includes('http') + ? document.source.url : `#`} target="_blank" >