I am also experiencing this issue
Previously it worked fine to exclude just one segment of the url (which did not correspond to a page). Now if I have that in the exclude section I get no breadcrumbs at all.
This is since the update to latest version.
My use case - I have a pages with urls like this: /toolkit/getting-started/normative-frameworks-cse
I want the Getting Started section breadcrumb, I want the current page title in the breadcrumb, but there is no page at /toolkit so I want to exclude that segment of the url.
How do you do this in the new version? I tried your code above and that did not help
Not sure if this helps to debug this but I only had this issue after switching from database backend to elastic search - are any others with the issue also using elastic search?
In the end I found a workaround using a custom field added to the index that stored year only via a token - then used that as facet source instead.
Actually I just noticed an option for this I had completely missed - apologies!
gsquirrel → created an issue.
Yes it is using my theme name, and the function itself is working but no data comes through to "total_rows" - as I say if I add kint to inspect the available variables (into the preprocess function) then I can see $vars['form'] expanded with all the available data - but no sign of "view" or anything remotely similar - only the exposed form data itself..
My form is for a search_api index view - maybe this makes a difference?
I tried that solution but it did not work for me - and there was no "#view" visible in kint under $vars['form']