I found out that it is easily possible to trim the trailing slash from urls.
Now here is my follow-up question:
How to trim the trailing slash from urls in the sitemap.xml?
I found out that it is easily possible to trim the trailing slash from urls.
Now here is my follow-up question:
How to trim the trailing slash from urls in the sitemap.xml?
Apart from the url and the sitemap.xml do I have to “fix” anything else to switch consistently from a website with trailing slash to a website without trailing slash?
Maybe the baseURL?
layout/sitemap.xml
<loc>{{ .Permalink | replaceRE "/$" "" }}</loc>
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.