Ghost 5.2.3
Ghost-CLI 1.21.0
local install to test before upgrade existing site on 4.x to 5.x.
The sitemap for pages is showing URLS with “{slug}” in the title, not the slug but the string “{slug}”. I’ve attached a screenshot.
Here is the process:
- local install with current 5.2.x of Ghost
- Import content and routes.yaml from current site (Ghost 4.x) for testing
Sitemap for pages is in the screenshot. Keep in mind the very same routes.yaml works fine on the live site: https://lexchart.com/sitemap-pages.xml
It is clearly not picking up the collections urls correctly. Here is an example of a collection in my routes.yaml:
/tutorials/{slug}/:
permalink: /tutorials/{slug}/
filter: primary_tag:tutorials
To be clear, the routing works fine. Going to http://localhost:2370/**tutorials**/some-post-with-primary_tag/ works. So does http://localhost:2370/**tutorials**/. It is just the sitemap for these collection urls that is not working.
The sitemap for specific posts in the collection works fine too.
I’ve tried the following:
- Clear cache (ghost buster)
- ghost restart
- Upload clean version of routes.yaml
- Open in private browser
- Clear browser cache
Thanks for any help!