Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/asset/[symbol]/why-moved/[date]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,19 @@ export default async function WhyMovedPage({ params }: Props) {

const assetLabel = entity?.label || symbol.toUpperCase();

// The policy is the gate's, not a constant — and it must be passed
// explicitly here. registerSeoPage() defaults to 'index', so rendering a
// quiet-day article (a crawler fetching it is enough) silently promoted the
// row back to index and undid scripts/reindex-why-moved.ts.
const indexPolicy = whyMovedIndexPolicy(article.pulses);
registerSeoPage({
path: `/asset/${canonicalSymbol}/why-moved/${date}`,
page_type: "event",
canonical_id: `${canonicalSymbol}-${date}`,
title: article.title,
meta_description: article.oneLine.slice(0, 200),
quality_score: 0.85,
index_policy: indexPolicy,
quality_score: indexPolicy === "index" ? 0.85 : 0.3,
lastmod: article.generatedAt,
});

Expand Down
Loading