fix: external knowledge citations show the page address instead of the page title (#32232)

Citations from external knowledge bases (Qdrant, Milvus, pgvector) whose source is a web address showed that full address in the source list below the answer, while the numbered citation markers in the answer text already showed the page title. The source list now shows the same title. Because of that, these citations no longer add a site icon to the sources button, which matches regular knowledge bases. Web search results keep showing their address.

Fixes https://github.com/open-webui/open-webui/issues/32231
This commit is contained in:
Classic298 authored and GitHub committed 2026-10-11 22:17:07 +04:00
1 parent ee1d9255fc
commit ca3a6cf26f
1 file changed
+1 -1
@@ -124,7 +124,7 @@
}
if (id.startsWith('http://') || id.startsWith('https://')) {
_source = { ..._source, name: id, url: id };
_source = { ..._source, name: metadata?.external ? _source.name : id, url: id };
}
const existingSource = acc.find((item) => item.id === id);