mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[GH-ISSUE #16735] issue: Domain Filter List results in no urls when set #72631
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @matthew-kusz on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16735
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.22
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I expect Domain Filter List to filter out the URLs with non-matching domains.
Actual Behavior
Setting Domain Filter List results in no URLs being returned.
Steps to Reproduce
Put any domain in the Domain Filter List field and set the web search engine to duckduckgo. Ask the chatbot a question and it will return 0 urls.
Logs & Screenshots
Resulting output from web search with extra text removed used in the
get_filtered_resultsfunction:[{'title': "title", 'href': "url", 'body': "body"}, ... ]
Additional Information
The problem seems to come from this line.. It tries to grab
urlorlinkbut the results returns ahrefinstead so it ends up becoming an empty string and never validates.@rgaricano commented on GitHub (Aug 19, 2025):
the filter is done below, in
438e5d966f/backend/open_webui/retrieval/web/main.py (L18)it filter out all results from domains that doesn't match with the ones setted in domain filter.
@matthew-kusz commented on GitHub (Aug 19, 2025):
Yes but the lines before that are the issue:
Since
resultdoesn't haveurlorlinkbuthrefinstead for the url,urlends up being an empty string and fails validation so it never gets to the line you mention.@tjbck commented on GitHub (Aug 21, 2025):
02479425a5