Multilanguage with hidden nodes

Created on 13 January 2022, almost 3 years ago
Updated 11 October 2024, 3 months ago

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

🐛 Bug report
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇩🇪Germany thomaswalther Rhein-Main Area

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇷🇺Russia walkingdexter

    I can't reproduce the problem from #4 - different sitemap results for different languages. This has probably been fixed in other issues. Speaking about the original problem, the proposed resolution is incorrect. If I understood the example correctly, then https://www.drupal8.loc/de/OeffentlicheSeite and https://www.drupal8.loc/en/node/401 are the URLs of the same node. In this case, the specified result is expected. This is exactly how the "Skip non-existent translations" functionality is designed.

Production build 0.71.5 2024