Repository navigation
fix(discover): noindex empty filtered public discovery responses - #734
Merged
Merged
Conversation
Search Console flagged empty filtered /discover URLs as soft 404s because direct anonymous 200 HTML responses returned empty-result UI with no robots directive. Send X-Robots-Tag: noindex via a response before_send hook when a direct anonymous 200 discovery search completes with zero matches under a scope-appropriate narrowing filter (q, event_type, narrowing date_filter, or active location for huddlz; q or active location for groups). Using an HTTP response header avoids leaving a sticky robots meta tag in the shared root layout during LiveView navigation. Populated searches, ordinary unfiltered discovery (including when empty), non-narrowing variants, loading defaults, failed searches, redirects, canonical links, and authenticated views remain unchanged.
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…vocation * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…-tokens * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…arer-token * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734) # Conflicts: # lib/huddlz_web/graphql_socket.ex
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…dl-links * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…mutations * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…ership * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Nov 30, 2026
…r-leave * origin/main: fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
ABF7
Dec 1, 2026
* origin/main: fix(auth): have open pages follow a change of access (#735) fix(groups): authorize membership changes against their roster (#739) fix(auth): bind administrator viewing credentials to the browser session (#736) fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729) fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79
added a commit
that referenced
this pull request
Dec 1, 2026
…d-sorts * origin/main: fix(auth): have open pages follow a change of access (#735) fix(groups): authorize membership changes against their roster (#739) fix(auth): bind administrator viewing credentials to the browser session (#736) fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729) fix(api): accept only sign-in tokens on the GraphQL socket (#730) fix(huddl): tie organizer-only huddl details to the current role (#726) fix(groups): keep a group's address book with its organizers (#725) fix(discover): noindex empty filtered public discovery responses (#734)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Direct anonymous HTTP 200 responses for filtered
/discoverqueries that succeed with zero matching results now sendX-Robots-Tag: noindex, addressing Search Console soft 404 findings (such as empty filteredhuddlzandscope=groupsdiscovery URLs) while preserving the empty-result UX.Indexing behavior and tradeoffs
X-Robots-Tag: noindexis applied on the initial 200 HTTP response viabefore_sendfrom the final rendered assigns rather than a<meta name="robots">tag in the shared root layout, so LiveView navigation never leaves a sticky noindex directive in<head>when users clear filters or move to populated pages.q,event_type, narrowingdate_filtervaluesthis_week/this_month/past, or active location forhuddlz;qor active location forscope=groups)./discoverand/discover?scope=groups(even when empty), non-narrowing variants (sort=newest,date_filter=all, blank queries, unknown params), loading defaults, failed searches, out-of-range pagination and sign-in redirects, canonical/Open Graph links, and authenticated responses stay unchanged.Manual verification
/discover?q=Board+games&event_type=hybrid&date_filter=this_weekor/discover?date_filter=this_month&event_type=virtual&q=Book+clubs&scope=groups) and confirm HTTP200withx-robots-tag: noindex, no<meta name="robots">tag, and the self-referencing canonical link intact./discover,/discover?scope=groups, and a populated filtered search return HTTP200withoutx-robots-tag.