Skip to content

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

Open
@javierxbrenes1

Description

@javierxbrenes1

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. ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions