D10 Unpublished Nodes Appearing in sitemap.xml

Created on 13 June 2024, 6 months ago

Problem

Sitemap is still displaying unpublished nodes after they are unpublished and the sitemap is rebuilt and cache cleared. This is a similar issue as https://www.drupal.org/project/xmlsitemap/issues/2266933 β†’ that does not appear to be resolved.

Steps to reproduce

Generate sitemap for article or basic page content type.
Build the sitemap.
Unpublish desired node.
Rebuild sitemap and clear cache
Node still shows in the list.

Proposed resolution

Check if node is published or give the option to select "All", "Published", or "Unpublished."

Thanks for the help and the module!

πŸ› Bug report
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kenfordesign

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

Comments & Activities

  • Issue created by @kenfordesign
  • πŸ‡ΊπŸ‡ΈUnited States agbockus Illinois

    I've had a report of a similar issue. From reading the linked issue, I'm wondering in my case if it's my use of scheduled_transitions β†’ is causing this issue with either node access OR due to the different status types that aren't strictly published or unpublished ("Draft", for example).

  • πŸ‡ΊπŸ‡ΈUnited States ashrafabed

    I am seeing the same issue on the latest (dev) version of xmlsitemap, but ONLY when rebuilding the sitemap via the UI.

    So if you're experiencing this issue, consider rebuilding with drush:
    drush xmlsitemap-rebuild

    (Also sharing this in case it's helpful for others to reproduce the issue)

Production build 0.71.5 2024