On a current project I have a site with multiple languages where english is the default language.

I'm getting a different sitemap.xml depending on how I trigger the generation.

The below ways will trigger a seemingly correct sitemap containing urls for all languages and alternate language links for each node.

  • Clicking Regenerate sitemap at /admin/config/search/simplesitemap
  • Clicking Run cron at /admin/config/system/cron while having "Regenerate the sitemap on every cron run" checked

The below ways will trigger a sitemap containing only urls to English nodes with no alternate language links.

  • Drush command: simple_sitemap-generate
  • Running cron via url /cron/ABCDEFGHXYZ... while having "Regenerate the sitemap on every cron run" checked

I have tried changing "Exclude duplicate links" and "Skip non-existent translations" but it doesn't seem to fix the issue.

Please let me now if I can provide any more info!

CommentFileSizeAuthor
#3 sitemap2.txt32.88 KBreekris
#3 sitemap1.txt351.17 KBreekris
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

reekris created an issue. See original summary.

gbyte’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce this, just generated a multilingual sitemap with both the UI and then drush and no difference there. Are you sure the drush generation triggers the correct site (in case you are in a multi site environment)?

Please press ctrl+u on the sitemap page and provide source for both variants.

reekris’s picture

FileSize
351.17 KB
32.88 KB

I'm not in a multisite environment so pretty sure I''m triggering the correct site. Also, the cron url is actually on the Cron page at /admin/config/system/cron. If I click on Run cron it generates a different sitemap compared to clicking on the cron url link.

I have attached the two different versions as txt (xml is not allowed). sitemap1 is generated via clicking regenerate sitemap or run cron. sitemap2 is generated via drush or the cron url.

Note that there are a lot of weird looking urls in sitemap1. It is because of the site having chinese and japanese languages and their urls gets encoded like that, which I believe is correct.

gbyte’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Unfortunately I cannot reproduce it on any of my instances. I tried all the combinations above and it gives me the same results with all translated entities linked in the sitemap. Can you please try and reproduce this on a fresh Drupal instance? Until then, I will mark it as 'cannot reproduce'.

gbyte’s picture

Status: Closed (cannot reproduce) » Closed (outdated)