-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined URLs in sitemap with Ghost #219
Comments
I faced the same issue with posts coming from WordPress source and I made it work using {
resolve: 'gatsby-plugin-advanced-sitemap',
options: {
query: `
{
allWpPost(filter: { status: { eq: "publish" } }) {
edges {
node {
id
slug
}
}
}
}`,
mapping: {
allWpPost: {
sitemap: 'blog-articles',
serializer: (edges) => {
const siteMapEntries = [];
edges.forEach((edge) => {
edge.node.slug = '/blog/' + edge.node.slug;
siteMapEntries.push(edge);
});
return siteMapEntries;
},
},
},
},
}, Note: it is necessary to specifically use Credits to andrewdever who gave the hint in #150. |
This seems to be fixed, but is still unreleased. Any plans on cutting a release? Demo URLs are also still broken / exhibiting this behavior... |
I verified that fix #234 did work in my case. It would be great to see this fix released. |
We are facing same issue tried above solutions but its not working. |
Issue Summary
When generating a sitemap with Ghost mapping, pages like
sitemap-posts.xml
,sitemap-tags.xml
are rendered with undefined URLs likehttps://gatsby.ghost.org/undefined
Check your official site URLs demo :)))
https://gatsby.ghost.org/sitemap-posts.xml
https://gatsby.ghost.org/sitemap-tags.xml
To Reproduce
Technical details:
Gatsby Version: v4.11.1
Node Version: v14.17.0
OS: macOS
gatsby-config.js:
The text was updated successfully, but these errors were encountered: