Adding alternate_urls in hook_simple_sitemap_links_alter not working on non-multilingual

Created on 27 July 2023, over 1 year ago
Updated 19 July 2024, 4 months ago

Following previous issues to add "alternate_urls":
https://www.drupal.org/project/simple_sitemap/issues/3194784 β†’

I added the simple example and was not seeing any output.

I then traced the logic to the file `simple_sitemap/src/Plugin/simple_sitemap/SitemapGenerator/DefaultSitemapGenerator.php` on line 91 that only adds the "alternate_urls" if the site is detected to be "isMultilingual()"

My use case is that the site I'm developing has an external translation service that needs to be mapped to external domains. So the Drupal site itself isn't aware of the translated content.

πŸ’¬ Support request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States spfaffly

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024