zHaytam / SmartBreadcrumbs

A utility library for ASP.NET Core (both MVC and Razor Pages) websites to easily add and customize breadcrumbs.
https://blog.zhaytam.com/2018/06/24/asp-net-core-using-smartbreadcrumbs/
MIT License
161 stars 77 forks source link

Unable to add breadcrumb attribute for Razor page with same page name in an Area #62

Closed biomade closed 4 years ago

biomade commented 4 years ago

I have a razor page in the main part of the application [/Pages/Index.cshtml] I also have an area named StyleGuide which has an index page in the root [/Area/StyleGuide/Pages/Index.cshtml] When I launch the solution an error is thrown in the

The error is thrown in the StartUp.cs in the ConfigureServices method at the services.AddBreadcrumbs(GetType().Assembly) call. The error is: An item with the same key has already been added. Key: /Index

zHaytam commented 4 years ago

Ah, yes... This is related to #37, which is still not implemented unfortunately.
Sorry, I'll try to see if I have the time for it this week.