From b8c9e97b151a44ce3c013e939451f42bbb156488 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 15 Nov 2026 21:13:48 +0900 Subject: [PATCH 1/3] fix(seo): match pregnancy hub ItemList with indexable locale tool pages --- site/src/app/[locale]/pregnancy/page.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/site/src/app/[locale]/pregnancy/page.tsx b/site/src/app/[locale]/pregnancy/page.tsx index 09c327fa..176a2705 100644 --- a/site/src/app/[locale]/pregnancy/page.tsx +++ b/site/src/app/[locale]/pregnancy/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { setRequestLocale, getTranslations } from "next-intl/server"; import { buildMetadata } from "@/lib/seo/metadata"; -import { getTool } from "@/lib/tools/registry"; +import { getTool, isIndexableIn } from "@/lib/tools/registry"; import { ToolCard } from "@/components/tools/ToolCard"; import { siteConfig } from "@/lib/config"; import type { Locale } from "@/lib/i18n/locales"; @@ -47,13 +47,16 @@ export default async function PregnancyHub({ params }: { params: Promise<{ local setRequestLocale(locale); const t = await getTranslations(); const tools = CLUSTER.map((slug) => getTool(slug)).filter(Boolean) as ToolMeta[]; + // Keep the seven-step user journey, but never advertise deliberate noindex + // destinations as Google ItemList results on this crawlable hub. + const indexableTools = tools.filter((tool) => isIndexableIn(locale, tool.slug)); const itemListLd = { "@context": "https://schema.org", "@type": "ItemList", name: t("pregnancy.title"), - numberOfItems: tools.length, - itemListElement: tools.map((m, i) => ({ + numberOfItems: indexableTools.length, + itemListElement: indexableTools.map((m, i) => ({ "@type": "ListItem", position: i + 1, url: `${siteConfig.url}/${locale}/tools/${m.slug}`, @@ -63,7 +66,9 @@ export default async function PregnancyHub({ params }: { params: Promise<{ local return (
-