Skip to content

[Bug]: /faq, /guidelines, and /support pages exist but are missing from lib/search/domains.ts — unreachable via navbar search #7958

Description

@ChetanSenta

Description

lib/search/domains.ts contains a maintenance instruction right at the top
of the file:

  • Keep this list in sync with app/**/page.tsx routes — when a new domain
  • (feature page) is added to the app, add an entry here too.

But comparing the actual routes under app/ against SEARCH_DOMAINS:

Actual page.tsx routes: In SEARCH_DOMAINS?
/ ✅ (id: 'home')
/generator ✅
/compare ✅
/burnout-analyzer ✅
/customize ✅
/contributors ✅
/achievements ✅
/documentation ✅
/faq ❌ MISSING
/guidelines ❌ MISSING
/support ❌ MISSING

app/faq/page.tsx, app/guidelines/page.tsx, and app/support/page.tsx are
all fully built, real pages (FAQ accordion, contributor guidelines,
support/contact page) — not stubs. hooks/useSiteSearch.ts (the navbar
search) resolves results purely from the static SEARCH_DOMAINS array, with
no fallback route-crawling. So these 3 pages are simply unreachable from
the site's search — a user typing "faq", "guidelines", "support", "help",
or "contact" into the navbar search gets zero results for pages that
actually exist.

Steps to Reproduce

  1. Open the app, click the navbar search.
  2. Type "faq" — no result appears, even though /faq exists and is linked
    elsewhere in the site (e.g. footer).
  3. Type "guidelines" or "support" — same result: nothing found.
  4. Compare with typing "compare" or "achievements" — these do resolve,
    because those pages have entries in SEARCH_DOMAINS.

Expected Behavior

Every real page under app/ should have a corresponding entry in
SEARCH_DOMAINS, per the file's own documented contract, so the navbar
search can find it.

Screenshots / Logs

No response

GitHub Username (If applicable)

No response

Environment

Chrome

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions