Skip to content

[Bug] Auto generate not working #375

@HarshidKhunt09

Description

@HarshidKhunt09

Addon

Webtools Core - Sitemap Addon

Describe the bug

When I publish a document from Strapi and have auto-publish turned on, the content does not appear in the sitemap. However, if I turn off the “exclude drafts” setting in the sitemap add-on and then publish the document, it does appear in the sitemap.

I think this is a Strapi v5 issue, because in Strapi v5, Draft and Publish are treated as separate states.

Steps to reproduce the behavior

  1. Go to Strapi
  2. Publish Any document
  3. Go to sitemap
  4. Not visible even if auto generate true

Expected behavior

It needs to visible in sitemap as auto generate is true.

Screenshots

No response

Code snippets

Node.js version

v21

Package manager

NPM

Strapi version

5.30.1

Plugin version

1.3.0

Database

PostgreSQL

Operating system

macOS

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs investigationThis needs some diving in to before it can be worked on

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions