Contao Sitemap generates url for same page twice
I am using contao 4.4 instance.I have a problem in google sitemap generation. I have a newsletter page (page type = regular ) . In that page I have some newsletter articles (with teaser) . When I generate the sitemap, the url of these articles generated twice. When I checked the core I found a class which creates the page array for generating sitemap
vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php
line no 662 - 680 .
Which append 'articles/' to the articles with teaser. So the sitemap generates url
- with articles/
- without articles/
The first one is the correct url.Second Url generate 404. How I fix the issue ?