D10 Unpublished Nodes Appearing in sitemap.xml

Created on 13 June 2024, 5 months ago
Updated 31 July 2024, 4 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).

Production build 0.71.5 2024