I can't figure out what is wrong with MVC.SiteMap, it does not display CanonicalUrl when I check the page source. In _layout file I have the following:
@Html.MvcSiteMap().CanonicalTag()
@Html.MvcSiteMap().MetaRobotsTag()
Here is MVC.Sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0"
xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd">
<mvcSiteMapNode title="Home" controller="Home" action="Index" metaRobotsValues="noindex" CanonicalUrl="/Home/Index">
<mvcSiteMapNode title="Healthcare Services" controller="Home" action="Healthcare" metaRobotsValues="noindex follow" CanonicalUrl="/Home/Healthcare"/>
<mvcSiteMapNode title="About" controller="Home" action="About" metaRobotsValues="noindex" CanonicalUrl="/Home/About"/>
<mvcSiteMapNode title="Training" controller="Home" action="Training" metaRobotsValues="noindex follow" canonicalUrl="/Home/Training"/>
<mvcSiteMapNode title="Environmental Services" controller="Home" action="Environment" metaRobotsValues="follow" canonicalUrl="/Home/Environment"/>
<mvcSiteMapNode title="IT Services" controller="Home" action="Internet" metaRobotsValues="noindex" CanonicalUrl="/Home/Internet"/>
<mvcSiteMapNode title="Our Clients" controller="Home" action="Clients" metaRobotsValues="noindex noarchive" canonicalUrl="/Home/Clients"/>
<mvcSiteMapNode title="Privacy" controller="Home" action="Privacy" metaRobotsValues="noindex noarchive" canonicalUrl="/Home/Privacy"/>
</mvcSiteMapNode>
</mvcSiteMap>
Would appreciate your suggestions.