The sitemap was using the redirect inducing explicit index url

use the dirname of the page when ends with index to stop this.