Skip to content

Commit

Permalink
Fixes maartenba#222, index page links are broken in sub-application.
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Sep 23, 2013
1 parent 0358ebe commit bad665d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected virtual IEnumerable<XElement> GenerateSiteMapIndexElements(int numPage
// Generate elements
for (int i = 1; i <= numPages; i++)
{
var combinedPath = urlPath.Combine(urlPath.AppDomainAppVirtualPath, siteMapUrlTemplate.Replace("{page}", i.ToString()));
var combinedPath = urlPath.Combine(urlPath.AppDomainAppVirtualPath, "~/" + siteMapUrlTemplate.Replace("{page}", i.ToString()));
var pageUrl = baseUrl + urlPath.MakeVirtualPathAppAbsolute(combinedPath);
yield return new XElement(Ns + "sitemap", new XElement(Ns + "loc", pageUrl));
}
Expand Down

0 comments on commit bad665d

Please sign in to comment.