etc map for multi domain in aem 6.5
Hi,
I have 2 domains for my dev environment for which I have created etc/map to shorten the content url.
etc map redirect for both domain is similar like this-




both domain has same sling:internalRedirect and redirect node.
but when I am generating sitemap.xml on domain am-dev.test.com (using acs common) all my generated pages having domain am-devwaf.test.com and not am-dev.test.com.
why is only one domain's etc/map is getting picked up for url shortening ?