next-seo
next-seo copied to clipboard
Unable to create canonical with Internationalization and localization "i18n"
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.
same here