maartenba/MvcSiteMapProvider — pull request #222 by uhaciogullari (2013-08-29 10:16:38+00:00)
Title: Sitemap page links are broken when application is hosted as sub application

When sitemap is broken into pages, page URLs are not generated correctly. They are just added to the end of domain. These links do not work when application is hosted inside another website.

![sb1](https://f.cloud.github.com/assets/1431130/1048732/575e77b4-1092-11e3-86e1-ed692d259343.png)
![sb2](https://f.cloud.github.com/assets/1431130/1048733/5abb8618-1092-11e3-9d49-cd9ad8a978be.png)

I fixed this by injecting IUrlPath into XmlSiteMapResult and using it to generate page links. It fixes the problem but you may have a better solution.