Before this commit, we have redundant loc in sitemap. When we iter the rules from the routing map, the comparison between two same endpoints are not equal since httpocalypse. After this commit we compare the function of the endpoint to know if we have already processed it or not. X-original-commit: c408de398c6b4e59cd9a233df251147d8750b9f2 Part-of: odoo/odoo#108670