You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @thaitranet
Could you please confirm if the new item created had any workflow assigned?
If not, this is how it works right now by design.
To protect against it, every page MUST have a workflow assigned.
Currently sitemap.xml content has to be created on XM where there is NO information whether something was published or not (like it used to be possible with master & web architecture), thus workflow should be there to control it.
When there is a publish which triggers sitemap refresh all of the pages for a given site are used for sitemap regeneration.
re: Possible Fix
These are good ideas but none is prefect and some of the current functionalities couldn't work or would require extra changes in edge schema.
There are plans to improve current architecture but for now recommendation is to use workflows.
Describe the Bug
Sitemap.xml returns unpublished item paths from the same BLOB generated on the CM host and published to the Edge.
https://github.com/Sitecore/jss/blob/dev/packages/create-sitecore-jss/src/templates/nextjs-sxa/src/pages/api/sitemap.ts
To Reproduce
Expected Behavior
The public sitemap.xml should show published URLs only.
Possible Fix
Provide environment information
The text was updated successfully, but these errors were encountered: