Matt Sharpe
Matt Sharpe

Reputation: 3783

MvcSiteMapProvider not resolving depending on RouteData

I am attempting to use the MvcSiteMapProvider with an MVC 4 site, and am having a problem in a section of the site which has (for example) a Project Listing page and child Project Detail page.

When you access the Detail page, the ID of the entity selected from the Listing is specified in URL e.g.: ~/Project/2/Detail

I have not made the Detail page a Dynamic node, as I do not want the Site Map Provider to provide any enhanced functionality. Essentially I want the Site Map Provider to ignore the projectID URL parameter and always just map to the Detail action.

Unfortunately, I am having the following problem:

I have tried to disable caching, enable caching with a long duration, and have even been digging around in the source code with no success. The inconsistent behaviour suggests it is a bug. Any help would be greatly appreciated.

Upvotes: 2

Views: 792

Answers (1)

Matt Sharpe
Matt Sharpe

Reputation: 3783

This problem is resolved.

See thread on MvcSiteMapProvider's github at:

https://github.com/maartenba/MvcSiteMapProvider/issues/154

Upvotes: 0

Related Questions