Skip to content

jsonld: add name to FAQPage + Answer (fixes remaining GSC Item:N/A) - #1396

Merged
Flotapponnier merged 1 commit into
devfrom
fix/jsonld-faq-name-fields
Jul 24, 2026
Merged

jsonld: add name to FAQPage + Answer (fixes remaining GSC Item:N/A)#1396
Flotapponnier merged 1 commit into
devfrom
fix/jsonld-faq-name-fields

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Root cause

TechArticle.name was fixed (PR #1257 + restored via #1392). But GSC still complains "Item: N/A" on 5+ bench pages because it validates the WHOLE @graph, not just TechArticle. Exhaustive scan revealed:

  • FAQPage (top-level) — missing `name` on every bench page + answer page + compare page
  • Answer (nested in each Question) — missing `name` on all FAQ nodes

Both inherit `name` from CreativeWork per schema.org, and Google's Rich Results validator treats it as required.

Fix

  • `buildFaqPageJsonLd` gains optional `pageName` param (fallback: "Frequently asked questions")
  • Each Answer now has `name` = the question text (semantically: this Answer is the answer TO this question)
  • 3 callers updated: bench slug page, answer slug page, compare pair page
  • Compare page's inline FAQ block mirrors the shared builder

Post-merge

Cherry-pick to main + `vercel --prod`. Then click "Validate fix" in GSC on the 5 flagged URLs. This should be the actual last blocker.

…des)

TechArticle.name was fixed but GSC keeps flagging Item:N/A on the
same URLs because it validates the WHOLE @graph, and 2 more nodes
lack name:
  - FAQPage (top-level, inherits name from CreativeWork)
  - Answer (nested in each Question, same inheritance)

Both were missing across all bench pages + answer pages + compare
pages. Adds:
  - buildFaqPageJsonLd gains optional pageName arg (default fallback
    'Frequently asked questions')
  - Answer.name = the question text (semantically: this is the answer
    TO this question)
  - Callers on bench/answer/compare pages pass a page-specific name
  - Inline compare-page FAQ block mirrors the shared builder

Same one-liner fix pattern as PR #1257 (TechArticle.name) but on
FAQPage + Answer.
@Flotapponnier
Flotapponnier merged commit b6286f1 into dev Jul 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant