Check 28.13 · Multilingual linking and schema

Create a distinct @id for each page

Give the page, article and product of each language version an @id built on its own canonical, and never reuse the one from the original.

Priority
Important
Difficulty
Intermediate
Estimated time
1 to 3 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Each language version of a page is a separate page, with its own canonical URL. The entities specific to that page (the WebPage, the Article, the Product, the breadcrumb) must therefore carry a distinct @id, built on the URL of the version: https://example.com/en/products/cast-iron-teapot/#product for the English page, https://example.com/produits/theiere-fonte/#product for the French page. Global entities (organization, website, author), on the other hand, keep a single @id for every language. Once this check is done, no page @id is shared by two URLs.

Why it matters

In JSON-LD, every node that carries the same @id designates the same entity, and its properties add up. If the English page reuses the identifier of the French page, a reader of the graph gets a single entity with two name values, two description values, two inLanguage values, two URLs and sometimes two currencies. The data becomes contradictory.

The defect stems from technical choices that seem reasonable:

  • Shared internal identifier: a headless CMS or a plugin builds the @id from the content number (#article-123), shared by every translation.
  • Permalink of the original used in a template to build the identifier.
  • Product identifier (#product-8842) shared by every language of a store.
  • Template copied from one language to another with the @id hard-coded.

Google points out that @id is used to connect items on the same page. To indicate the language versions of a page, it documents hreflang annotations and does not mention structured data. No generative engine documents its use of @id values. Distinct identifiers per version guarantee no display; they prevent a graph in which languages get mixed up.

What it improves

  • Entities without contradictions Each version has its own name, description, language and URL.
  • Consistency with the canonical and hreflang One URL, one page, one set of entities.
  • Reliable internal references The breadcrumb, video or reviews of the English page attach to the English page.
  • Maintenance An identifier derived from the URL can be checked at a glance.
  • Rankings and AI answers No documented direct effect.

How to check

Compare the original page and its translation:

for url in https://example.com/produits/theiere-fonte/ https://example.com/en/products/cast-iron-teapot/; do
  echo "== $url"
  curl -s "$url" | grep -o -E '"@id": ?"[^"]+"' | sort -u
done

Expected result: the page, product and breadcrumb identifiers differ and each starts with the URL of its version; only those of the organization, the website and the authors are shared.

On a list of URLs (extracted from the sitemaps of every language), this script flags page @id values that are not based on the page's canonical and those shared by several URLs:

#!/usr/bin/env python3
"""Usage: python3 ids_par_page.py urls.txt  (one URL per line)"""
import json
import re
import sys
import urllib.request
from collections import defaultdict

TYPES_DE_PAGE = {
    "WebPage", "ItemPage", "CollectionPage", "FAQPage", "ProfilePage", "AboutPage", "ContactPage",
    "Article", "BlogPosting", "NewsArticle", "Product", "ProductGroup", "BreadcrumbList",
    "Service", "Event", "Course",
}


def analyser(url):
    requete = urllib.request.Request(url, headers={"User-Agent": "audit-schema"})
    html = urllib.request.urlopen(requete, timeout=15).read().decode("utf-8", "replace")
    canonique = re.search(r'<link[^>]*rel="canonical"[^>]*href="([^"]+)"', html)
    identifiants = []
    for bloc in re.findall(r"<script[^>]*application/ld\+json[^>]*>(.*?)</script>", html, re.S | re.I):
        try:
            donnees = json.loads(bloc)
        except json.JSONDecodeError:
            continue
        liste = donnees.get("@graph", [donnees]) if isinstance(donnees, dict) else donnees
        for entite in liste:
            types = set(entite.get("@type", [])) if isinstance(entite.get("@type"), list) else {entite.get("@type")}
            if types & TYPES_DE_PAGE and isinstance(entite.get("@id"), str):
                identifiants.append((", ".join(sorted(t for t in types if t)), entite["@id"]))
    return (canonique.group(1) if canonique else url), identifiants


pages_par_id = defaultdict(set)

with open(sys.argv[1], encoding="utf-8") as fichier:
    for url in fichier.read().split():
        canonique, identifiants = analyser(url)
        for type_entite, identifiant in identifiants:
            pages_par_id[identifiant].add(url)
            if not identifiant.startswith(canonique):
                print(f"{url} | {type_entite} | @id outside the canonical: {identifiant}")

for identifiant, pages in pages_par_id.items():
    if len(pages) > 1:
        print(f"@id shared by {len(pages)} URLs: {identifiant}")

The script assumes that the rel attribute comes before href in the canonical tag; adapt the expression if your template reverses them.

How to implement

Before you start

Convention for a product available in French (default language, no prefix) and in English:

Entity French version English version
WebPage https://example.com/produits/theiere-fonte/#webpage https://example.com/en/products/cast-iron-teapot/#webpage
Product https://example.com/produits/theiere-fonte/#product https://example.com/en/products/cast-iron-teapot/#product
BreadcrumbList …/produits/theiere-fonte/#breadcrumb …/en/products/cast-iron-teapot/#breadcrumb
Organization https://example.com/#organization Identical
WebSite https://example.com/#website Identical
Person (author) https://example.com/auteurs/jeanne-martin/#person Identical

Rules:

  • Page entities: one @id per version, built on the canonical URL of the version, followed by a fragment per type. The exact form (with or without #webpage) matters little, as long as it is the same everywhere.
  • Global entities: one @id for every language. A person remains the same person when their biography is translated; choose a reference page to build their identifier. See keep a stable organization @id (opens in a new tab).
  • Never a shared internal identifier (content number, product ID) as the sole basis of the @id.
  • The shared identity goes through other properties: for a product, sku, gtin or mpn are the same in every language; they are what says it is the same physical item.
  • Consistent URL and @id: the entity's url is that of the version. See adapt url to the language (opens in a new tab).

For an article, schema.org offers to connect a translation to the original with translationOfWork, and the original to its translations with workTranslation. These properties come from schema.org's bibliographic extension; no engine documents their use, and hreflang remains the mechanism Google recognizes. They are optional:

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "@id": "https://example.com/en/blog/cast-iron-teapot-care/#article",
  "url": "https://example.com/en/blog/cast-iron-teapot-care/",
  "headline": "How to care for a cast iron teapot",
  "inLanguage": "en-GB",
  "translationOfWork": { "@id": "https://example.com/blog/entretenir-theiere-fonte/#article" },
  "publisher": { "@id": "https://example.com/#organization" }
}

WordPress

Versions WordPress 6.5 and later, Yoast SEO, Rank Math, WPML and Polylang, November 2026.

With WPML or Polylang, each translation is a separate piece of content with its own canonical. Yoast SEO and Rank Math build page identifiers on this canonical: each version therefore receives distinct @id values without any configuration. The risk comes from markup added by the theme or a third-party plugin. In your code, always start from the canonical provided by the SEO plugin:

add_filter('wpseo_schema_graph', function (array $graph, $context): array {
    if (! is_singular('recette')) {
        return $graph;
    }

    $graph[] = [
        '@type' => 'Recipe',
        '@id' => "{$context->canonical}#recipe",
        'name' => get_the_title(),
        'inLanguage' => get_bloginfo('language'),
        'mainEntityOfPage' => ['@id' => $context->canonical],
    ];

    return $graph;
}, 10, 2);

With Yoast, the @id of the WebPage is the canonical itself, hence the mainEntityOfPage reference above. Avoid get_the_ID() or the ID of the original content in an @id.

Shopify

Versions Online Store 2.0 themes, Liquid, November 2026.

canonical_url returns the URL of the version being viewed, language prefix included. Build identifiers on it, never on product.id or product.handle alone, which are shared by every language:

"@id": {{ canonical_url | append: '#product' | json }},
"url": {{ canonical_url | json }},
"sku": {{ product.selected_or_first_available_variant.sku | json }},

Also check review or structured data apps: some publish their own Product with a fixed identifier.

Drupal

Versions Drupal 10 and 11, Schema.org Metatag module.

Build the @id with the [node:url] token, resolved in the language of the translation, followed by the fragment: [node:url]#article. Do not use [node:nid], which is identical for every translation of the same content.

Laravel

Versions Laravel 11 to 13.

Derive the identifier from the canonical URL of the version, generated by the route of the current language:

namespace App\Support;

use Illuminate\Support\Str;

class SchemaIds
{
    public static function forPage(string $canonicalUrl, string $fragment): string
    {
        $url = Str::before($canonicalUrl, '?');

        return "{$url}#{$fragment}";
    }
}

Usage: SchemaIds::forPage(route('products.show', $product), 'product'), with the language already set by the language middleware. Do not use $product->id in the @id: it is shared by every translation of a translatable model.

Next.js

Versions Next.js 15 and 16 (App Router).

With a headless CMS, each entry often has an identifier shared by all its languages: do not use it in the @id. Start from the URL of the version:

const url = absoluteUrl(locale, `/products/${product.slug}/`);

const jsonLd = {
  '@context': 'https://schema.org',
  '@type': 'Product',
  '@id': `${url}#product`,
  url,
  name: product.name,
  sku: product.sku,
};

absoluteUrl is the per-language URL building function described in adapt url to the language (opens in a new tab); product.slug must be the slug for the route's language.

Nuxt

Versions Nuxt 3 and 4, @nuxtjs/i18n and Nuxt Schema.org modules.

Nuxt Schema.org builds the identifiers of page entities from the URL of the current route, language prefix included: each version receives distinct identifiers. Only check the entities you declare with an explicit @id.

Common mistakes

  • @id built on the CMS identifier (#article-123), shared by every translation.
  • Same page @id in every language, copied from a template.
  • Organization or author duplicated per language, the opposite mistake: these are global entities.
  • @id that does not match the canonical: a different trailing slash, parameter or www.
  • A single product @id for the whole multilingual catalog, even though the name, description, URL and sometimes currency differ from one language to another.
  • Regional variants of the same language (/fr-ca/, /fr-be/) that share the identifier of the French version: they are separate pages too.

Frequently asked questions

Can a translated page reuse the @id of the original page?

No. In JSON-LD, two nodes that carry the same @id designate the same entity and their properties are combined: the page would end up with two names, two descriptions, two languages and two URLs. Each language version has its own canonical URL; build the @id of its page, article or product on it. Only the organization, the website and people keep a shared identifier.

Should a product sold in several languages have a single @id?

One @id per product page is better. The name, description, URL and sometimes the currency differ from one version to another: a shared identifier would mix these values. What says it is the same physical item are the commercial identifiers, such as sku, gtin or mpn, identical in every language. Build the @id on the canonical URL of each version.

Should translations be connected with workTranslation?

It is optional. The schema.org properties workTranslation and translationOfWork let you connect an article to its translations in structured data, but they come from the bibliographic extension and no engine documents their use. To tell Google about the language versions of a page, the recognized mechanism remains the hreflang annotation. Only add these properties if your CMS generates them easily and without errors.

Updated on

Topic checklist (PDF)

And now?

In the “Multilingual linking and schema” topic

  1. Favor links to the same language
  2. Fix links to the default language
  3. Translate anchor text
  4. Check the language switcher on every page
  5. Check related content, footer and in-article links
  6. Identify orphan pages by language
  7. Build clusters for each market
  8. Check click depth and link equity distribution
  9. Use inLanguage on compatible types
  10. Translate name and description
  11. Adapt url to the language
  12. Keep a stable organization @id
  13. Create a distinct @id for each page
  14. Translate FAQ and Article markup
  15. Adapt Product and priceCurrency
  16. Adapt areaServed and contact details
  17. Check availability by country
  18. Check sameAs
  19. Validate the markup for each language