MvcSiteMapProvider MVC5 CanonicalUrl
问题 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