Updating from 2.0.5 to 2.0.6 caused a regression on a website we use with the option "Use menu title when available"
Issue fork easy_breadcrumb-3462565
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
spuky commentedStill the case with 2.0.7 or dev ?
Comment #3
spuky commentedform the code
Use the real page title when available
and
Alternative title field name for breadcrumb
win over
Use menu title when available
it might help to turn off "Use the real page title when available" and empty the "Alternative title field name for breadcrumb"
when you have one of those options enabled...
and they successfully produce a title menu title is ignored there is an Issue to change that behavior in the future..
Comment #4
spuky commentedComment #5
nno commentedThan you spuky!
I had the same issue. Clearing default value from "Alternative title field name for breadcrumb" fixes the issue. Maybe that field shouldn't have default value or we should update description of "Use menu title when available" field.
Comment #6
mikemccaffreyI was having this issue as well, but thanks to the advice above, clearing the default "field_breadcrumb_title" value out of the "Alternative title field name for breadcrumb" input made the "Use menu title when available" functionality work properly.
This seems like a big issue, since it is totally not obvious that the bread crumb field name has anything to do with the menu titles, and it is filled in by default on module install.
Comment #7
jérôme dehorterHi,
I don't have quite the same problem.
Currently I have a site with 2 languages, French by default and English second.
I have the options enabled:
- Include the current page as a segment in the breadcrumb
- Include the front page as a segment in the breadcrumb
- Use menu title when available
- Add current breadcrumb as structured data.
- Follow redirects.
On the default language of the site, in our case French, everything works fine but in English, the Use menu title when available option is not taken into account and in the breadcrumb it is the title of the page which is added.
I found the problem in my case:
Adding the English language adds the alternative_title_field option by default: field_breadcrumb_title
in the \config\sync\language\en\easy_breadcrumb.settings.yml, which prevents the using of the menu option if we do not delete this value in the translation page /admin/config/user-interface/easy-breadcrumb/translate
Sorry for the inconvenience
Comment #10
alexandru.dumitru commentedI pushed a fix to prevent the issue described by jérôme dehorter
https://git.drupalcode.org/project/easy_breadcrumb/-/merge_requests/149