Steps to reproduce
I have 2 languages (de/en) and I always check this "Regenerate all sitemaps after hitting Save". The node 401 is in german (de) and has no translation for english (en)
I got 156 sites in the sitemap generated when I am on the settings page in de (/de/admin/config/search/simplesitemap/settings)
I got 120 sites in the sitemap generated when I am on the settings page in en (/en/admin/config/search/simplesitemap/settings)
Strange: Generated sitemap is dependent from the current language?
If I activate the checkbox "Skip non-existent translations"
ON THE ENGLISH settings page (/en/...) I got 61 pages.
ON THE GERMAN settings page (/de/...) I got 79 pages.
Problem/Motivation
If I deactivate the checkbox "Skip non-existent translations" I got this:
https://www.drupal8.loc/de/OeffentlicheSeite
--> DE:https://www.drupal8.loc/de/OeffentlicheSeite
--> EN:https://www.drupal8.loc/en/node/401
https://www.drupal8.loc/en/node/401
--> DE:https://www.drupal8.loc/de/OeffentlicheSeite
--> EN:https://www.drupal8.loc/en/node/401
If I activate the checkbox "Skip non-existent translations" I got this:
https://www.drupal8.loc/de/OeffentlicheSeite
--> DE:https://www.drupal8.loc/de/OeffentlicheSeite
So here I missed the pages which have a translation for english (en)
Proposed resolution
For me, something like this should come out:
deactivate (no skipping):
https://www.drupal8.loc/de/OeffentlicheSeite
--> DE:https://www.drupal8.loc/de/OeffentlicheSeite
--> EN:https://www.drupal8.loc/en/node/401
https://www.drupal8.loc/de/401
--> EN:https://www.drupal8.loc/en/node/401
activate (skipping):
https://www.drupal8.loc/de/OeffentlicheSeite
--> DE:https://www.drupal8.loc/de/OeffentlicheSeite
So this plugin shows hidden nodes or hides nodes that are translated. Both versions are wrong for me.
Remaining tasks
https://www.drupal.org/project/simple_sitemap/issues/3081649 →