Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions web/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ export async function search(req: SearchRequest): Promise<SearchResponse> {
return fetchApi<SearchResponse>("/search", {
method: "POST",
headers: { "Content-Type": "application/json" },
// Default to article pages (drop Portal:/List_of_/disambiguation meta pages);
// an explicit articles_only in req still wins.
body: JSON.stringify({ articles_only: true, ...req }),
// NOTE: the visual grid intentionally does NOT set articles_only — the
// Portal/Featured-picture pages it would drop are often the most visually
// striking tiles (panoramas, paintings), which is the point of this view.
// The chat agent DOES filter (it reads article text to answer questions).
body: JSON.stringify(req),
});
}

Expand Down
Loading