maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
539 stars 218 forks source link

issue with mvcsitemap when use tamperproof url tokens #473

Open vikasNew opened 6 years ago

vikasNew commented 6 years ago

Hi.

i have added dynamic tokens into url's. tokens generated dynamically for every page based on controller, action and ids.

i have added this token into preservedRouteParameters but after adding tokens into url my breadcrumbs does not navigate to correct page. because it always uses current page token to navigate but previous page has different token.

below is the scenario which i have.

my previous page url is:- http://local.abc.com/admin/abc/files/160795/nnqve6e6rdengufoudgpr16msh4 current page url is:- http://local.abc.com/admin/abc/addfiles/160795/rjfwo7kqgexelnikv39pe4bk3wg

but my breadcrumb shows the below url to navigate previous page:- http://local.abc.com/admin/abc/files/160795/rjfwo7kqgexelnikv39pe4bk3wg

correct navigation url should be:- http://local.abc.com/admin/abc/files/160795/nnqve6e6rdengufoudgpr16msh4

please help me on how to resolve this issue.

what should i do to resolve this issue with dynamic token to url.

Thanks