Let the sitemap know about asymmetric translations

Created on 3 March 2023, almost 2 years ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

Currently the sitemap.xml contains a seperate entry for each node, because it doesn't recognize asymmetric translated nodes as translations of one another. The sitemap should contain translation sets instead.

Example:

  <url>
    <loc>https://example.com/nl/webpage</loc>
    <xhtml:link rel="alternate" hreflang="nl" href="https://example.com/nl/webpage"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/webpage"/>
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/webpage"/>
    <lastmod>2022-08-30T16:02:39+02:00</lastmod>
    <priority>0.5</priority>
  </url>

Steps to reproduce

  1. Create a node in one language
  2. Add an asymmetric translated node
  3. Check the sitemap to see if there is a translation set

Proposed resolution

Can we hook into sitemap generation? Not sure yet.

Remaining tasks

  1. Investigate ways to hook into sitemap generation
  2. Write a fix

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024