The Sitemap plugin is great but lacks the trailing slash to match the enabled Pretty URL setting.
For example, I have Pretty URLs enabled, which adds a trailing slash at the end of the URL. However, the sitemap generated by the Netlify plugin does not have the trailing slash.
I read the pretty URL guidelines here, and here, but cannot find a fix.
I redeployed my site by clearing the cache to regenerate the sitemap, but the sitemap still does not show a trailing slash. Then, I built the sitemap with an external tool which successfully included the trailing URL.
Sitemaps and Pretty URLs were enabled. Still, the sitemap.xml file does not generate a trailing slash at the end of the URL. As a result, there are redirects reported.
I did a combination of tests like disabling pretty URLs and the sitemap plugins but the / at the end is not present.
Did you check the link I provided? It sends you to the documentation of the plugin which ha some configuration options. It has nothing to do with any of the screenshots you’ve provided.
I did review the link you attached but I can’t see where I edit the settings. The pretty URLs have only one button “configure,” yet there is nothing else but a check mark.
How do I access the configuration settings your link shows?
Thank you for responding. To ensure we write about the same issue.
Can you tell what is the expected behavior?
a)The sitemap plugin adds the trailing slash when pretty URLs are on (and removes it when it’s off).
b)After enabling Pretty URLs, I need to config the sitemap manually to add the trailing slash.