Link related topics using link-tag for better helping search engines

AI-generated summary

guidoleenders discusses the need for better language localization support in Discourse, particularly for multilingual forums like Invantive’s Dutch and English communities. While topics are currently linked manually with cross-language navigation (e.g., “Go to LANGUAGE version”), there is no structured way to signal to search engines that two topics are language variants of the same content. This limits SEO performance and prevents search engines from presenting the most relevant language version to users. To address this, Invantive uses HTML link tags with hreflang attributes in their sitemaps and pages, following Google’s guidelines for localized content. Examples from Apple’s website demonstrate widespread adoption of this method across multiple languages. This approach helps search engines understand content relationships and improves language-specific search result relevance.

On our forums we have segmented Dutch and English across a range of categories. Each category has a primary language and moderators make sure the content is moved when landing in the wrong language’s category.

For the content written in wiki’s, there is often a need for an English and Dutch version. Therefore, for each language content is developed and put online. Example:

This Dutch content has an English variant with similar information for an English-reading user population:

The two topics are linked for user navigation (and workarounds for SEO issues on Bing and Google, see Missing HTML meta-tag "Content-Language" for BING language detection and Language support on category level for more relevant search results) by a hyperlink at the start of the text: “Go to LANGUAGE version”

However, there is currently no structured way in Discourse to tell search engine that two topics actually serve the same information but in a different language. This makes it harder for search engines to present content in the searcher’s language, plus each individual page has to build it’s own page authority, instead of them being summed together.

On another site we therefore have on each page (and sitemaps) included link-HTML tags to help search engines understand the structure as documented on Localized Versions of your Pages | Google Search Central  |  Documentation  |  Google for Developers :

<link rel="alternate" hreflang="nl" href="https://cloud.invantive.com/nl/autotask" />
<link rel="alternate" hreflang="en" href="https://cloud.invantive.com/en/autotask" />
<link rel="alternate" hreflang="de" href="https://cloud.invantive.com/de/autotask" />
<link rel="alternate" hreflang="fr" href="https://cloud.invantive.com/fr/autotask" />
<link rel="alternate" hreflang="es" href="https://cloud.invantive.com/es/autotask" />
<link rel="alternate" hreflang="it" href="https://cloud.invantive.com/it/autotask" />
<link rel="alternate" hreflang="da" href="https://cloud.invantive.com/da/autotask" />
<link rel="alternate" hreflang="nb" href="https://cloud.invantive.com/nb/autotask" />
<link rel="alternate" hreflang="sv" href="https://cloud.invantive.com/sv/autotask" />
<link rel="alternate" hreflang="fi" href="https://cloud.invantive.com/fi/autotask" />
<link rel="alternate" hreflang="pt" href="https://cloud.invantive.com/pt/autotask" />
<link rel="alternate" hreflang="ja" href="https://cloud.invantive.com/ja/autotask" />
<link rel="alternate" hreflang="x-default" href="https://cloud.invantive.com/nl/autotask" />
<link rel="canonical" href="https://cloud.invantive.com/nl/autotask" />

This is not uncommon, such as Apple does:

<link rel="alternate" href="https://www.apple.com/" hreflang="en-US" />
<link rel="alternate" href="https://www.apple.com/ae-ar/" hreflang="ar-AE" />
<link rel="alternate" href="https://www.apple.com/ae/" hreflang="en-AE" />
...a stunning 140 languages...
<link rel="alternate" href="https://www.apple.com/vn/" hreflang="en-VN" />
<link rel="alternate" href="https://www.apple.com/za/" hreflang="en-ZA" />
<link rel="alternate" href="https://www.apple.com.cn/" hreflang="zh-CN" />

It would be helpful when topics could be linked to instruct search engines for their structure. This could include language links like above on alternate.

5 Likes