Skip to content

Commit d277ecc

Browse files
igoramfclaude
andcommitted
fix(seo): set og:type=product on product detail pages
SeoPDPV2 was inheriting og:type from site-level config (usually "website"). Adds "product" to OGType union and explicitly sets type="product" in the SeoPDPV2 loader so PDPs emit the correct Open Graph type. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dd63a83 commit d277ecc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

commerce/sections/Seo/SeoPDPV2.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function loader(_props: Props, _req: Request, ctx: AppContext) {
9494
canonical,
9595
noIndexing,
9696
jsonLDs,
97+
type: "product" as const,
9798
};
9899
}
99100

website/components/Seo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const renderTemplateString = (template: string, value: string) =>
77
template.replace("%s", value);
88

99
export type SEOSection = JSX.Element;
10-
export type OGType = "website" | "article";
10+
export type OGType = "website" | "article" | "product";
1111

1212
export interface Props {
1313
title?: string;

0 commit comments

Comments
 (0)