You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'feature/SitemapController-Extended' into develop
Simplified the output of the default sitemap; introduced an optional `/Sitemap/Extended` action for exposing all metadata.
Previously, the sitemap output (most) attributes and relationships as additional metadata. Few agents support this metadata, and no current implementations utilize it. The main reason it was in place is to support the legacy Google Custom Search Engine (CSE), which used to support it—but is no longer offered by Google. As that functionality adds a lot of weight to the default sitemap, it's been removed from the default output (87b6d1b). It is still supported, however, it via the `Extended()` action (84c054f), in case future agents provide support for the `<PageMap />` and `<DataObject />` elements.
In addition, a new `MapTopicSitemap()` extension method was introduced (a4b449d) to simplify configuration of the sitemap route for any sites not using e.g. the `MapDefaultControllerRoute()`, which would otherwise cover the `SitemapController`.
Finally, both `MapTopicSitemap()` (a4b449d) and the preexisting `MapTopicRedirect()` (60a220f) extensions are configured in the `OnTopic.AspNetCore.Mvc.Host` project for integration testing.
0 commit comments