Skip to content

fix(BUY-40114): add books-stationery and garden-outdoor to PRODUCT_TAXONOMY#89

Open
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-40114-category-taxonomy
Open

fix(BUY-40114): add books-stationery and garden-outdoor to PRODUCT_TAXONOMY#89
BuyWhere wants to merge 1 commit into
mainfrom
fix/BUY-40114-category-taxonomy

Conversation

@BuyWhere

Copy link
Copy Markdown
Owner

Problem

GSC URL Inspection (2026-06-10) reported /categories/books-stationery and /categories/garden-outdoor as excluded by noindex. Both appear in sitemap-categories.xml but were not in PRODUCT_TAXONOMY.

Root cause: getCategoryBySlug() returns undefinednotFound() → Next.js 404 with <meta name="robots" content="noindex">.

Fix

Added books-stationery and garden-outdoor to PRODUCT_TAXONOMY in src/lib/taxonomy.ts. The /categories/[slug] route will now serve proper 200 responses for these slugs.

Other issues (no code change needed)

  • /categories/pet-supplies and /categories/sports-outdoors: return HTTP 200 now. Already in PRODUCT_TAXONOMY. GSC 404 was stale cache.
  • /categories/beauty-health: canonical mismatch is a content-signal issue, not a code bug.

Fixes BUY-40114.

🤖 Generated with Claude Code

…XONOMY

These two slugs appear in sitemap-categories.xml but had no taxonomy entry,
causing getCategoryBySlug() to return undefined → notFound() → noindex.
GSC reported them as "Excluded by noindex" because Next.js 404 pages carry
<meta name="robots" content="noindex">. Adding them to PRODUCT_TAXONOMY means
the /categories/[slug] page will serve proper 200 responses with indexable content.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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