fix(BUY-40114): add books-stationery and garden-outdoor to PRODUCT_TAXONOMY#89
Open
BuyWhere wants to merge 1 commit into
Open
fix(BUY-40114): add books-stationery and garden-outdoor to PRODUCT_TAXONOMY#89BuyWhere wants to merge 1 commit into
BuyWhere wants to merge 1 commit into
Conversation
…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>
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.
Problem
GSC URL Inspection (2026-06-10) reported
/categories/books-stationeryand/categories/garden-outdooras excluded by noindex. Both appear insitemap-categories.xmlbut were not inPRODUCT_TAXONOMY.Root cause:
getCategoryBySlug()returnsundefined→notFound()→ Next.js 404 with<meta name="robots" content="noindex">.Fix
Added
books-stationeryandgarden-outdoortoPRODUCT_TAXONOMYinsrc/lib/taxonomy.ts. The/categories/[slug]route will now serve proper 200 responses for these slugs.Other issues (no code change needed)
/categories/pet-suppliesand/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