Blog posts link is missing from Ghost sitemap file after 5.52.1 upgrade

5.52 all is good :v:
I suggest you to rollback to that version if you have the droplet backup…

The ghost blog version 5.52 is also not solved the sitemap issue. What to do now?

Well I was facing the same issue with 5.55, My posts were not updating. So I just generated a sitemap externally. Hosted in a subdomain. And created a cloudflare page rule so that blog.smartgoat.me/sitemap-full.xml redirects to subdomain.smartgoat.me/sitemap.xml . It works with Google search console. Btw /sitemap-full.xml actually doesn’t exist. Cloudflare just redirect to the subdomain.
I am using cloudpanel to host my blog in a oracle server. I documented the process in my blog at https://blog.smartgoat.me .

Okay , Now i ultra modded my sitemap using cloudflare-workers visit https://blog.smartgoat.me/sitemap.xml @mjw @Cathy_Sarisky

Hey, how did you resolve the issue? I am facing the same problem.

Apparently your website doesn’t work.

The new site is at https://smartgoat.me/

I resolved the issue by not filling up the canonical url option in the editor.

If you are using the canonical url option then don’t use it. The cannonical url is actually used if you are posting the same content and then to provide the url to the original content. If you leave it blank ghost automatically selects your url as cannonical. And if you fill up the cannonical url part your sitemap will loose the blog post urls.

1 Like

I also use an external sitemap for some part of the site. As not all of my site is not ghost, you will understand it if you visit. https://smartgoat.me/sitemap-apps.xml is the external sitemap. And this is the original url https://blogsitemap.smartgoat.me/sitemap-services.xml

So, do I have to remove the canonical urls for all the posts?

In the editor before publishing the post if you have provided the canonical urls , then you should remove it. But if you have not provided that in the first place then this might be a different problem.

Actually, there are 100s of posts. How can I remove it manually?

First verify with one or two posts, whether this works or not. If this works then do the rest. I don’t know about any faster way

You should put in a custom canonical URL if a different URL is canonical. If the post itself already is the canonical URL, then no.

See the blog post about custom canonical URLs:

This is working fine now after removing the canonical URLs. However, I have another site that uses Gatsby as the front-end and uses this plugin to generate the sitemap - gatsby-plugin-advanced-sitemap. The slugs are undefined after the Ghost upgrade(No Canonical URLs present). Interestingly, this ghost site mentioned in the sitemap plugin page shows undefined slugs too. What would be the solution?

I have no idea for this particular problem. But there is a temporary solution to this problem, which works fine with my small hobby project, but I don’t know if it will work with your site. Basically for a part of my site. I host a sitemap in cloudflare pages, which is externally generated by a sitemap generator tools. And then with cloudflare workers I serve the sitemap which is externally hosted in cloudflare pages( GitHub pages, or any webserver will work too) under the same url as my blog. Works for me, but don’t know about your case. This is the externally hosted site map https://blogsitemap.smartgoat.me/sitemap-services.xml but this is also served from this url https://smartgoat.me/sitemap-apps.xml using cloudflare workers. This is probably not a ideal solution, but works

Thanks for resolving my issue. I really appreciate it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.