
Megan Perry-Thibault (Customer) asked a question.
Breadcrumb Repeating Itself With VirtualNode True
Hello, we are running in an issue with Breadcrumb widget on 15.4.8622.
We set AllowVirtualNodes to true on a detail page for some of our dynamic content so that the bread crumb shows "Content / Content Title" rather than "Content / Content Details". However, instead it is repeating itself (see screenshot below).
We are using a custom breadcrumb view (code below as well) but I don't believe we made any changes to the actual C# parts, just some CSS styles.
Does anyone know what might be causing this or how to fix it? Thanks!
- <div class="@Model.CssClass pils">
- <nav aria-label="@Html.Resource("BreadcrumbShowFullPath")">
- <ol class="breadcrumb">
- <li style="padding-right: var(--bs-breadcrumb-item-padding-x);gap:.5rem;"><a href="/oit-intranet"><img src="/sitefinity-images/oitintranetlibraries/icons/breadcrumbhome.svg" alt="White Home Icon" /></a><span>❯</span></li>
- @for (int i = 0; i < Model.SiteMapNodes.Count; i++)
- {
- var node = Model.SiteMapNodes[i];
-
- if (i == Model.SiteMapNodes.Count - 1 && Model.ShowCurrentPageInTheEnd)
- {
- <li class="breadcrumb-item" aria-current="page">@node.Title</li>
- }
- else
- {
- if (!string.IsNullOrEmpty(node.Url))
- {
- <li class="breadcrumb-item"><a href="@node.Url">@node.Title</a></li>
- }
- else
- {
- <li class="breadcrumb-item">@node.Title</li>
- }
- }
- }
- </ol>
- </nav>
- </div>
Looking at the out of the box view from GitHub it appears to be slightly different. Might not make much of a difference but worth noting.
https://github.com/Sitefinity/feather-widgets/blob/master/Telerik.Sitefinity.Frontend.Navigation/Mvc/Views/Breadcrumb/Breadcrumb.cshtml