I have an MVC 5 application with Unity DI using the MvcSitemapprovider package from nuget. I'm trying to use the ignore MvcSiteMapProvider_AttributesToIgnore appsetting in my web.config file like the following
<add key="MvcSiteMapProvider_AttributesToIgnore" value="type" />
But when my sitemap is displayed, the urls have the ignored value as the querystring.
There is a section in the mvcsitemapprovider documentation that reads
If using an external DI container, this setting can be found on the constructor of the ReservedAttributeNameProvider in a parameter named "attributesToIgnore", which is type IEnumerable
I'm using Unity so I wonder if I need to add this to my container somehow, but I don't know how.
Any ideas on how to ignore route values?