It's hard to tell which part of the site backend does that, possibly on ASP side.
You can use that this.html link as Starting URL for sitemap generator to create a sitemap (I just tried and it seems to work), however I'd recoomend to look into that issue with js redirect anyway.