harlan-zw / nuxt-seo

The complete SEO solution for Nuxt.
https://nuxtseo.com
1.04k stars 66 forks source link

Breadcrumbs Schema.org I18n #314

Open MuhammadM1998 opened 10 months ago

MuhammadM1998 commented 10 months ago

Details

Hello,

I'm working on a website that has i18n. I have eg-ar, and eg-en locales and I use the prefix strategy so for the root page I have /eg-ar and /eg-en/ paths.

When I tried to use the breadcrumb which by default generates items automatically based on schma.org (which is also automatically generated by the module). I noticed that it renders the Home link twice, once as / and another as /eg-ar/ (or /eg-en/ depending on the current locale). I'm not an SEO expert and have some questions

harlan-zw commented 3 weeks ago

Hi, this would be an issue with the useBreadcrumbItems composable provided by the Nuxt SEO module itself. Moved it incorrectly originally.

In terms of general I18n, in the latest minor I've introduced a much better I18n integration which will properly seperate your WebSite entries based on your locales.

Does this mean that schema.org spec also has this setup? If so, is this the expected behavior?

This is a bug.

Does the breadcrumb component adds any SEO improvement? or its main feature is the auto-generating of link and if I were to manually do those I could build my own component with no drawbacks.

It's for the Rich Results snippet, see https://developers.google.com/search/docs/appearance/structured-data/breadcrumb. This may or may not improve click-through-rates or ranking.