John Mueller a expliqué sur Twitter que lorsque vous redirigez une URL, vous pouvez laisser l’URL de départ dans le Sitemap XML de façon temporaire (1 à 3 mois), le temps que Google la découvre et la traite. C’est certes une mauvaise pratique en théorie (un Sitemap XML ne doit pas contenir d’URL redirigée), mais cela donne une indication à Google de façon temporaire, avant de revenir à la normale.
For a temporary state it's fine to have redirects in the sitemap file. Long term, you want the URLs listed there that you want as canonical.
— 🦙 johnmu.xml (personal) 🦙 (@JohnMu) March 30, 2022
Temporary is when the move is mostly complete, and you want to focus on the new stable state. Practically, probably after 1-3 months. To be fair, I suspect the effect is minimal nowadays, but optimizers want to optimize 🙂
— 🦙 johnmu.xml (personal) 🦙 (@JohnMu) March 30, 2022