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

Breadcrumbs with parameters #92

Open
riverahugo opened this issue Jun 8, 2021 · 1 comment
Open

Breadcrumbs with parameters #92

riverahugo opened this issue Jun 8, 2021 · 1 comment

Comments

@riverahugo
Copy link

var categoryNode = new BreadcrumbNode(product.Category.Name, "Controller", "Category", null, new { id = 10 });

Doesn't work :/ on net core 2.1

I neeeeeddddd help!!!!!!!!!!!!!!!!!!!!!!!

@gandhiarpit
Copy link

You can try something like this
var categoryNode = new MvcBreadcrumbNode("Category", "Controller", product.Category.Name) { RouteValues = new { Id = 10 } };

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

2 participants