next-seo icon indicating copy to clipboard operation
next-seo copied to clipboard

Unable to create canonical with Internationalization and localization "i18n"

Open ochoadan opened this issue 1 year ago • 1 comments

Describe the bug

languageAlternates does not create canonical pages

Reproduction

On Config:

module.exports = {
  i18n: {
    locales: ["en", "es"],
    defaultLocale: "en",
  },
}

On Page:

<NextSeo
    canonical="https://www.mydomain.com/"
    languageAlternates={[
        {
            hrefLang: 'es',
            href: "https://www.mydomain.com/es/",
        }
    ]}
/>

Expected behavior Alternate pages should create a canonical tag.

Capture Capture2

ochoadan avatar Mar 13 '23 22:03 ochoadan

same here

ducmaster01 avatar Jun 24 '23 21:06 ducmaster01