/** * Findings: P-01 (doubled title suffix, og:url pointing at the homepage), P-03 (apex vs www) * * app/layout.tsx * * Set the brand suffix and base URL exactly once. Child routes then pass only their own * title ("Careers"), and relative URLs in openGraph/alternates resolve against metadataBase. * * Root cause of "Careers | Cynbit Technologies | Cynbit Technologies": the page passed * "Careers | Cynbit Technologies" while the layout template appended the suffix again. */ import type { Metadata } from "next"; import type { ReactNode } from "react"; export const metadata: Metadata = { metadataBase: new URL("https://www.cynbit.in"), // the host the site actually serves title: { default: "Cynbit Technologies | AI Automation & Software Solutions", template: "%s | Cynbit Technologies" }, description: "Software solutions company in Jaipur specialising in AI automation, autonomous agents and digital architecture.", openGraph: { siteName: "Cynbit Technologies", locale: "en_IN", type: "website" }, twitter: { card: "summary_large_image", site: "@Cynbit_in" }, // Note: no openGraph.url here. A URL in the root layout is inherited by every page, // which is exactly how every page ended up claiming https://cynbit.in. }; export default function RootLayout({ children }: { children: ReactNode }) { return ( {children} ); }