On our website we have some bug we don´t know how to fix it.
We have to languages: Spanish and English. The English URLs have the prefix /en/
In our sitemap, generated by RankMath are few urls with content in English that doesn´t show /en/. We have tried to replied the bug but we have not achived it and haven´t found any information either.
For now, I have added a redirect to those urls so that it does not generate a 404, but I would like to make them disappear from the sitemap and know how to prevent it from happening again.