I'm configuring my websites to support language changes via route, so I can index all pages in all languages on Google.
In addition to configuring routes per page.
I also make changes via tag:
<link rel="alternate" href="https://www.streamingdiscovery.com/en/legal/terms" hreflang="en">
<link rel="alternate" href="https://www.streamingdiscovery.com/pt/legal/terms" hreflang="pt">
<link rel="alternate" href="https://www.streamingdiscovery.com/es/legal/terms" hreflang="es">
<link rel="alternate" href="https://www.streamingdiscovery.com/en/legal/terms" hreflang="x-default">
and via sitemap:
<url>
<loc>https://www.streamingdiscovery.com/en/platforms/9</loc>
<lastmod>2026-04-09</lastmod>
<xhtml:link rel="alternate" hreflang="en" href="https://www.streamingdiscovery.com/en/platforms/9" />
<xhtml:link rel="alternate" hreflang="pt" href="https://www.streamingdiscovery.com/pt/platforms/9" />
<xhtml:link rel="alternate" hreflang="es" href="https://www.streamingdiscovery.com/es/platforms/9" />
</url>
But I noticed that your component doesn't have any mechanism to detect this.
Some suggestions I thought of were:
1 - We could configure some kind of regex to duplicate the pages;
2 - Generate the HTML files based on the sitemap, instead of reading tags as is currently done;
I'm configuring my websites to support language changes via route, so I can index all pages in all languages on Google.
In addition to configuring routes per page.
I also make changes via tag:
and via sitemap:
But I noticed that your component doesn't have any mechanism to detect this.
Some suggestions I thought of were:
1 - We could configure some kind of regex to duplicate the pages;
2 - Generate the HTML files based on the sitemap, instead of reading tags as is currently done;