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

Mutiple AttributeRoutes with different verbs not resolving breadcrumb #463

Open
martinjt opened this issue May 22, 2017 · 0 comments
Open

Comments

@martinjt
Copy link

It's a bit of a weird setup, possibly, so don't know if this is actually a bug or not.

I have

[HttpDelete]
[Route("{id:int}/provider/{providerId:int?}", Order = 3)]
public async Task<ActionResult> DeleteProvider(int id, int? providerId)
{
..
}

Then

[Route("{id:int}/provider/{providerId:int}", Order = 1)]
[MvcSiteMapNode(Title = "Edit Provider", ParentKey = "listProviders", Key = "EditProvider", ResourceKey = "<key>", PreservedRouteParameters = "id,providerId")]
		public async Task<ActionResult> EditProvider(int id, int providerId)
{
..
}

This doesn't resolve the breadcrumb when doing:

@Html.SiteMapPath()

However, if I remove the HttpDelete method entirely, it works fine.

Like I said, probably an obscure usecase, happy to try and build a small repo, but putting this here initially to see if it's a known issue.

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