garmeeh / next-seo

Next SEO is a plug in that makes managing your SEO easier in Next.js projects.
MIT License
7.56k stars 390 forks source link

WebSiteJsonLd #1472

Open imprisonedmind opened 3 months ago

imprisonedmind commented 3 months ago

Is your feature request related to a problem? Please describe. I have both <OrganizationJsonLd/> and <LocalBusinessJsonLd/> yet my siteName on Google search does not change from a URL. Following these docs, it appears we are missing <WebSiteJsonLd/> either that or I am missing something?

I also have my all metadata fields setup correctly.

Describe the solution you'd like

      <WebSiteJsonLd
        useAppDir={true}
        siteMetadata={{
          '@type': 'WebSite',
          name: 'Burnt Toast',
          alternateName: ['BT', 'B-T', 'Burnt Toast Shop'],
          url: 'https://www.example.com/',
        }}
      />

Describe alternatives you've considered 1) Tried other jsonLD tags 2) Tried Next.js metadata tags 3) Passing custom data to <DefaultSeo/>

      <DefaultSeo
        dangerouslySetAllPagesToSources={{
          websiteJsonLd: {
            "@context": "https://schema.org",
            "@type": "WebSite",
            name: "Burnt Toast",
            alternateName: ["BT", "B-T", "Burnt Toast Shop"],
            url: "https://www.example.com/",
          },
        }}
      />
vavilondev commented 2 months ago

would be nice