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 2026-10-11 20:17:07 +02:00 • committed by GitHub
parent ee1d9255fc
commit ca3a6cf26f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);