Problem/Motivation

Viewing elements that not belong to any menu, the breadcrumb is always empty or just a link to homepage. And there's no possibiliy to have a fallback.

Proposed resolution

Add a textarea on configuration form to allow a list of path prefix and check them on the apply method.

User interface changes

A new textarea field on the configuration form.

API changes

NA

Data model changes

New configuration variable: disable_aliases

Comments

alvar0hurtad0 created an issue. See original summary.

alvar0hurtad0’s picture

Title: Add a list of banned paht aliases » Add a list of banned path aliases
rphair’s picture

Status: Active » Closed (won't fix)
Related issues: +#2804943: Improve handling of partial active trail

We are not going to do this because, when a page does "not belong to any menu":

1) the default Drupal 8 path based breadcrumb builder will provide a path based breadcrumb, complete except for any path components for inaccessible pages. Therefore the Problem statement is incorrect, since the fallback is the path based breadcrumb builder.

2) similarly, you are free to add another breadcrumb builder to take over when there's no applicable menu-based breadcrumb for either the current page or its taxonomy parent. It is beyond the scope of Menu Breadcrumb to provide breadcrumbs that aren't related in some way to menu membership.

You might take a look at feature request 2804943 to see what you can do by setting the active trail according to context. Failing that, you could also write a lightweight module to provide a default breadcrumb as you describe, for the cases Menu Breadcrumb won't handle.

alvar0hurtad0’s picture

Thanks for your reply and the support.