Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting double Id at the end of the path created by Html.MvcSiteMap() #488

Open
javierxbrenes1 opened this issue Sep 4, 2019 · 0 comments

Comments

@javierxbrenes1
Copy link

javierxbrenes1 commented Sep 4, 2019

Hey, I have this configuration

<mvcSiteMapNode title="Administration" controller="CommonSettings" action="Index">
    <mvcSiteMapNode title="Users" controller="User" action="Index">
      <mvcSiteMapNode title="User Details" controller="User" action="UserDetails" preservedRouteParameters="id"/>
      <mvcSiteMapNode title="Edit User" controller="User" action="Edit" preservedRouteParameters="id">
        <mvcSiteMapNode title="Reset Password" controller="User" action="ResetPassword" preservedRouteParameters="id"/>
      </mvcSiteMapNode>
    </mvcSiteMapNode>
</mvcSiteMap>

When I go to Reset Password page the breadcrumb created is this:
Users > Edit User > Reset Password

The path under Edit User is "http://domain/User/Edit/5/5" this is not correct because the expected path has to be "http://domain/User/Edit/5"

so far, I am guessing that the problem is on the Mvc.sitemap due preservedRouteParameters but if I remove it then I can't see any breadcrumb anymore.

any idea. ?

@javierxbrenes1 javierxbrenes1 changed the title Getting double Id at the end of the path created by Html.MvcSiteMap().SiteMapPath() Getting double Id at the end of the path created by Html.MvcSiteMap() Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant